-
-
Notifications
You must be signed in to change notification settings - Fork 17
Entry
Davide Santangelo edited this page Oct 17, 2022
·
2 revisions
Entries are the elements of an RSS feed, such as blog entries, news headlines, or episodes of audio and video series.
All entries have some of the following properties, with required properties in bold:
Field | Description |
---|---|
id | The entry's unique UUID. |
feed_id | The FK with the parent feed table. |
title | The title of the entry. |
body | The content of the entry. |
url | The URL of the entry. |
external_id | The RSS external ID of the entry. |
categories | The list of categories. |
annotations | The field of enrichment provided by Dandelion API. |
sentiment | The sentiment of the entry 'negative/neutral/positive'. |
published_at | The published datetime of the entry. |
enriched_at | The datetime of the entry's enrichment. |
created_at | The create row DateTime. |
updated_at | The update row DateTime. |
# GET /feeds/:id/entries
RestClient.get "https://<your.host>/api/feeds/:id/entries", { Authorization: "Token #{TOKEN}" }
{
"data": [
{
"id": "67a95338-d5d3-4a09-b805-03b9e13bcbd2",
"type": "entry",
"attributes": {
"title": "The Real Stars of the Internet",
"url": "https://www.nytimes.com/2019/04/19/style/star-ratings-amazon-uber-seamless.html?partner=rss&emc=rss",
"published_at": 1555664402,
"body": "The rater has become the rated.",
"text": "The rater has become the rated.",
"sentiment": {
"type": "positive",
"score": 0.6428571428571429
},
"categories": [
"consumer reviews",
"computers and the internet",
"search engines",
"delivery services",
"brooklyn (nyc)",
"your-feed-selfcare"
],
"tags": []
},
"relationships": {
"feed": {
"data": {
"id": "923d5997-ce13-41d4-98ca-8feb8513cdd4",
"type": "feed"
},
"links": {
"related": "http://www.rss.com/rss/homepage/rss2.0.xml"
}
}
}
},
{
"id": "87ab5dee-568f-460c-8ccc-5f13d418687c",
"type": "entry",
"attributes": {
"title": "After Social Media Bans, Militant Groups Found Ways to Remain",
"url": "https://www.nytimes.com/2019/04/19/technology/terrorist-groups-social-media.html?partner=rss&emc=rss",
"published_at": 1555664407,
"body": "Hezbollah and other groups classified as terrorist organizations by the United States have changed their social media strategies to stay on Facebook, YouTube and Twitter.",
"text": "Hezbollah and other groups classified as terrorist organizations by the United States have changed their social media strategies to stay on Facebook, YouTube and Twitter.",
"sentiment": {
"type": "negative",
"score": 0.7118571428441421
},
"categories": [
"terrorism",
"social media",
"computers and the internet",
"propaganda",
"video recordings",
"downloads and streaming",
"muslims and islam",
"hamas",
"hezbollah",
"facebook inc",
"instagram inc",
"twitter",
"youtube.com"
],
"tags": [
"hezbollah",
"terrorism",
"organization",
"united states",
"social media",
"facebook",
"youtube",
"twitter"
]
},
"relationships": {
"feed": {
"data": {
"id": "923d5997-ce13-41d4-98ca-8feb8513cdd4",
"type": "feed"
},
"links": {
"related": "http://www.rss.it/rss/homepage/rss4.0.xml"
}
}
}
}
]
}