-
-
Notifications
You must be signed in to change notification settings - Fork 15
Search
Davide Santangelo edited this page Oct 17, 2022
·
5 revisions
RestClient.get "https://<your.host>/api/search/entries?q={query}", { Authorization: "Token #{TOKEN}" }
{
"data": [
{
"id": "6e8bf3dc-1b2c-47f2-a4a6-0ba074d9980e",
"type": "entry",
"attributes": {
"title": "Republicans are overwhelmingly sticking with Trump, yet again",
"url": "https://www.aljazeera.com/opinions/2021/2/1/republicans-are-overwhelmingly-sticking-with-trump-yet-again",
"published_at": 1612176036,
"body": "Days before his second impeachment trial, Trump’s influence over the Republican Party remains as entrenched as ever.",
"text": "Days before his second impeachment trial, Trump’s influence over the Republican Party remains as entrenched as ever.",
"categories": [
"opinions"
],
"sentiment": null,
"parent": {
"id": "a041943f-5659-49f0-b9be-2fbacef7432f",
"title": "Al Jazeera – Breaking News, World News and Video from Al Jazeera",
"url": "feed:https://www.aljazeera.com/xml/rss/all.xml",
"rank": 94.0
},
"tags": []
},
"relationships": {
"feed": {
"data": {
"id": "a041943f-5659-49f0-b9be-2fbacef7432f",
"type": "feed"
}
}
}
},
{
"id": "8abecbd0-3e67-454b-bfb5-96bf77a288fa",
"type": "entry",
"attributes": {
"title": "Trump Wants To Force Immigrants To Submit Eye Scans, Voice Prints, And DNA",
"url": "https://www.buzzfeednews.com/article/hamedaleaziz/trump-immigrant-biometric-info-applications",
"published_at": 1599240332,
"body": "<h1>“They’re using what is overly general language in the law to justify a massive, unprecedented expansion to collect really personal information,\" one former immigration official said.</h1><p><img src=\"https://img.buzzfeed.com/buzzfeed-static/static/2020-09/1/22/campaign_images/5811cc3bf67c/trump-wants-to-force-immigrants-to-submit-eye-sca-2-9309-1599000194-6_dblbig.jpg\" /></p><hr /><p><a href=\"https://www.buzzfeednews.com/article/hamedaleaziz/trump-immigrant-biometric-info-applications\">View Entire Post ›</a></p>",
"text": "“They’re using what is overly general language in the law to justify a massive, unprecedented expansion to collect really personal information,\" one former immigration official said.View Entire Post ›",
"categories": [],
"sentiment": null,
"parent": {
"id": "a2a93ee7-dbb3-4d8e-8732-7f67a299cd0c",
"title": "BuzzFeed News",
"url": "https://www.buzzfeed.com/world.xml",
"rank": 95.0
},
"tags": []
},
"relationships": {
"feed": {
"data": {
"id": "a2a93ee7-dbb3-4d8e-8732-7f67a299cd0c",
"type": "feed"
}
}
}
},
...
]
RestClient.get "https://<your.host>/api/search/feeds?q={query}", { Authorization: "Token #{TOKEN}" }
{
"data": [
{
"id": "acfdd538-afd9-4a7d-b3a8-2df1d4eb4342",
"type": "feed",
"attributes": {
"title": "il Giornale",
"description": "il Giornale",
"url": "http://www.ilgiornale.it/feed.xml",
"status": "enabled",
"entries_count": 79,
"last_import_at": 1612249210,
"rank": 91.0
}
}
]
}