dnivelad | 2017-04-07 13:20:00 UTC | #1
I'm trying without much success to post a list of subscriptions via the /api/v2/notifications/channels/{channelId}/subscriptions call. Currently using the jQuery $.ajax call. I keep getting 400 back as soon as I add more than one item to the list. Do you have a working example using jQuery (or just even plain XMLHttpRequest) that posts an array of subscriptions as you expect it to be posted?
tim.smith | 2017-04-10 15:25:31 UTC | #2
Give the Notification Tester in the dev tools a try. Look at the network console when making subscriptions. The request body will look like this:
[
{
"id": "v2.users.9ed7d9f6-0c59-4360-ac54-40dd35eb9c2f.presence"
}
]
system | 2017-08-28 19:33:41 UTC | #3
This post was migrated from the old Developer Forum.
ref: 1158