-
Notifications
You must be signed in to change notification settings - Fork 54
Open
Description
Example (this happens for both the Python and REST API (as the Python just calls the REST API directly)
Multiple URLs (the dailymail will get null -- only if it's second, it works if it's first!):
curl --request POST \
--url "http://eventregistry.org/api/v1/articleMapper" \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '
{
"articleUrl": [
"https://www.business-standard.com/article/pti-stories/japan-eyes-record-defence-budget-amid-n-korea-china-threats-118083100326_1.html",
"https://www.dailymail.co.uk/money/saving/article-12583973/Half-Premium-Bonds-prizes-won-maximum-50-000-holding.html"
],
"includeAllVersions": true,
"deep": true,
"apiKey": "XXX"
}
{
"https://www.business-standard.com/article/pti-stories/japan-eyes-record-defence-budget-amid-n-korea-china-threats-118083100326_1.html": "936069503",
"https://www.dailymail.co.uk/money/saving/article-12583973/Half-Premium-Bonds-prizes-won-maximum-50-000-holding.html": null
}
Single URL (the dailymail will be mapped):
curl --request POST \
--url "http://eventregistry.org/api/v1/articleMapper" \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '
{
"articleUrl": [
"https://www.dailymail.co.uk/money/saving/article-12583973/Half-Premium-Bonds-prizes-won-maximum-50-000-holding.html"
],
"includeAllVersions": true,
"deep": true,
"apiKey": "XXX"
}
{
"https://www.dailymail.co.uk/money/saving/article-12583973/Half-Premium-Bonds-prizes-won-maximum-50-000-holding.html": "7763074647"
}
Metadata
Metadata
Assignees
Labels
No labels