-
-
Notifications
You must be signed in to change notification settings - Fork 1
Feed
Davide Santangelo edited this page Mar 7, 2023
·
16 revisions
RSS is a type of web feed that allows users and applications to access updates to online content in a standardized, computer-readable format — RSS Wiki.
All feeds have some of the following properties, with required properties in bold:
Field | Description |
---|---|
id | The feed's unique UUID. |
title | The title of the feed. |
description | The description of the feed. |
url | the url of the feed. |
image | the url of image. |
created_at | The create row DateTime. |
updated_at | The update row DateTime. |
items_count | the number of items. |
language | the language of the feed. |
synchronized_at | the datetime of last import. |
curl -G -H "Authorization: Token {TOKEN}" https://searq.org/api/feeds.json
{
"data": [
{
"id": "78087019-bba5-4d3c-acfc-e50238bbe693",
"type": "feed",
"attributes": {
"title": "NYT > World News",
"url": "https://www.nytimes.com/svc/collections/v1/publish/https://www.nytimes.com/section/world/rss.xml",
"description": "",
"image": {
"url": "https://static01.nyt.com/images/misc/NYT_logo_rss_250x40.png",
"link": "https://www.nytimes.com/section/world",
"title": "NYT > World News"
},
"language": "en-us",
"items_count": 10
}
}
]
}
curl -X POST -H "Authorization: Token {TOKEN}" https://searq.org/api/feeds.json -d "url"="{URL}"
{
"data": {
"id": "ad5e17a6-01d8-4835-be19-da67ae3be206",
"type": "task",
"attributes": {
"status": "enqueued",
"task_type": "feed_store",
"enqueued_at": "2023-03-07T21:37:03.522Z",
"started_at": null,
"finished_at": null,
"error_message": null
},
"relationships": {
"feed": {
"data": {
"id": "753b309f-7c55-47a3-9a55-cce5a834b1e2",
"type": "feed"
}
}
}
}
}