Subscribe to real-time news.
Apikey assigned to the user by Newsware
Create a news subscription
Replies "ok" when subscription is created, "data" when new data is available, and "error" when an error occurred with the subscription.
Available only on servers:
Accepts the following message:
{
"method": "subscribe",
"id": "4d921aca-6117-46eb-88ed-1cd9284dbb80",
"value": {
"fields": [
"body",
"headline"
],
"filter": "string"
}
}
Unsubscribe from one or all news subscriptions
Replies "ok" when the subscription is removed and "error" to report any errors while unsubscribing.
Available only on servers:
Accepts the following message:
{
"method": "unsubscribe",
"id": "d0df9941-dd7b-4b8c-8aa9-64367417a90c",
"value": {
"subscriptionId": "4d921aca-6117-46eb-88ed-1cd9284dbb80",
"all": false
}
}
Sent to acknowledge a request
Sent to report an error in the request
Sends news from a subscription