Feed (RSS)
Iscriviti a feed RSS/Atom, recupera le voci e salva gli articoli nelle note. Supporta import/export OPML.
Definizioni di tipo
type Feed {
id: ID!
url: String! # RSS/Atom URL
name: String! # display name (defaults to feed title)
fetchContent: Boolean! # when true, the server fetches the full article body
updatedAt: String!
}
type FeedCount {
feedId: ID!
count: Int! # total entries
unreadCount: Int!
}
type FeedEntry {
id: ID!
feedId: ID!
title: String!
description: String! # short summary
content: String! # full article body (may be empty until fetched)
url: String! # canonical article URL
publishedAt: String! # ISO 8601
read: Boolean!
favorite: Boolean!
tags: [Tag!]!
}Operazioni
feeds
Elenca tutti i feed sottoscritti.
query GetFeeds {
feeds { id url name fetchContent updatedAt }
}feedsCount
Conteggi totale e non letti per ogni feed.
query GetFeedsCount {
feedsCount { feedId count unreadCount }
}feedEntries
Cerca voci feed (titolo + descrizione). Lascia la query vuota per elencarle tutte.
query GetFeedEntries($offset: Int!, $limit: Int!, $query: String!) {
feedEntries(offset: $offset, limit: $limit, query: $query) {
id feedId title description content url publishedAt read favorite
tags { id name }
}
}feedEntryCount
Conta le voci feed corrispondenti a una query.
query GetFeedEntryCount($query: String!) {
feedEntryCount(query: $query)
}feedEntry
Recupera una singola voce feed per ID.
query GetFeedEntry($id: ID!) {
feedEntry(id: $id) { id feedId title description content url publishedAt read favorite }
}createFeed
Iscriviti a un nuovo feed. Il server recupera il canale RSS per popolare il nome, poi avvia una sincronizzazione una tantum.
mutation CreateFeed($url: String!, $fetchContent: Boolean!) {
createFeed(url: $url, fetchContent: $fetchContent) { id url name fetchContent updatedAt }
}updateFeed
Aggiorna il nome visualizzato del feed o il flag fetchContent.
mutation UpdateFeed($id: ID!, $name: String!, $fetchContent: Boolean!) {
updateFeed(id: $id, name: $name, fetchContent: $fetchContent) { id url name fetchContent updatedAt }
}deleteFeed
Annulla l'iscrizione a un feed ed elimina tutte le sue voci (e le relative relazioni tag).
mutation DeleteFeed($id: ID!) {
deleteFeed(id: $id)
}syncFeeds
Attiva un worker di sincronizzazione feed una tantum. Passa un id per sincronizzare un singolo feed; passa null o vuoto per sincronizzare tutti.
mutation SyncFeeds($id: ID) {
syncFeeds(id: $id)
}syncFeedEntryContent
Fetch the full article body for a single feed entry. Returns the updated entry.
mutation SyncFeedEntryContent($id: ID!) {
syncFeedEntryContent(id: $id) { id content }
}deleteFeedEntries
Elimina le voci feed corrispondenti a una query (e le relative relazioni tag).
mutation DeleteFeedEntries($query: String!) {
deleteFeedEntries(query: $query)
}importFeeds
Importa un documento OPML (come stringa) nel database dei feed.
mutation ImportFeeds($content: String!) {
importFeeds(content: $content)
}exportFeeds
Esporta tutti i feed sottoscritti come stringa OPML.
mutation ExportFeeds {
exportFeeds
}