Author Message
HuppiFluppi [Avatar]

Joined: Apr 29, 2015
Messages: 13
Offline
Hello there,

I am able to send Long Poll Requests to the Presence Services REST API. But when I send the PUBSUB Container request, I only get "" as an Answer.

PUBSUB Request:
{

"pubSubContainer": {
"additionalResources": {
"capabilitiesPublication": {},
"presencePublication": {},
"serviceCapabilitiesSubscription": {},
"presenceSubscriptions": [ {}, {} ],
"watcherAuthReqSubscription": {},
"imSubscription": {},
"sentImSubscription": {},
"presentity": {}
},
"restPostbackUri": "https://<server-url>/test.php"
}
}


Answer from Event Delivery:

HTTP/1.1 415 Unsupported Media Type
Server: web
Date: Tue, 01 Jun 2021 13:13:36 GMT
Transfer-Encoding: chunked
Connection: keep-alive
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Language: en-US
Set-Cookie: JSESSIONID=00009WS6u33YXV5VIPNsLfXzDHQ:-1; Path=/; HttpOnly
Set-Cookie: ibmappid=local.1622548124626
Strict-Transport-Security: max-age=31536000; includeSubdomains


I just updates to the latest versions for Presence and EventDelivery (8.1.4)
Pavan
Joined: May 5, 2020
Messages: 3
Offline
Hello,

Error is 415 Unsupported Media Type.
Might be something to do with http headers, usually it should be like this:

Accept: application/vnd.avaya.presence-im.container.v1+json, application/vnd.avaya.presence-im.error.v1+json

Can you confirm headers you are using with the request?

HuppiFluppi [Avatar]

Joined: Apr 29, 2015
Messages: 13
Offline
Hi,

my headers to Presence always include this:

Accept: application/vnd.avaya.presence-im.container.v1+json, application/vnd.avaya.presence-im.error.v1+json

But it seems like I found a better solution. I will use the AdHoc Presence Request. This is all I need.

Thank you. :)
Schamberger
Joined: Jun 30, 2021
Messages: 1
Offline
I am making a data pipeline where several apis are integrated into a single database schema. This is for retail purposes. Every hour or so the api's are queried and say 1000-2000 records come back. Maybe a quarter are duplicate records because the api doesn't allow you to exclude already fetched items.

official website
Go to:   
Mobile view