question

abhi avatar image
abhi asked ·

Issue with Creating Subscription to Presence Event

Getting error while registering for a notification presence event. I have a Office plan, not sure standard or premium.

ANy help would be appreciated.

-----------------------------------------------

Authorization: Bearer xxxxxxxxxxxxxxxxxxx
Content-Type: application/json

Payload:
{  "eventFilters": [
     "/restapi/v1.0/account/~/extension/~/presence"
 ],
  "deliveryMode": {
        "transportType": "WebHook"
        "address": " https://hooks.zapier.com/hooks/catch/{some address}/";
  }
}


Error:
{  "errorCode": "InvalidParameter",
  "message": "Parameter [deliveryMode] value is invalid",
  "errors": [
    {
      "errorCode": "CMN-101",
      "message": "Parameter [deliveryMode] value is invalid",
      "parameterName": "deliveryMode"
    }
  ],
  "parameterName": "deliveryMode"
}


topic-default
1 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

igor-bebin1769 avatar image
igor-bebin1769 answered ·
Hi Abhi,

deliveryMode looks not really valid, try this:


{  "eventFilters": [
     "/restapi/v1.0/account/~/extension/~/presence"
 ],
  "deliveryMode": {
        "transportType": "WebHook",
        "address": " https://hooks.zapier.com/hooks/catch/{some address}/"
  }
}
Share
1 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

benjamin-dean avatar image
benjamin-dean answered ·
Hello Abhi,

Are you using one of our SDKs( https://developers.ringcentral.com/library/sdks.html)? If not, I would recommend using one if possible. There are both RingCentral Official SDKs (software we have invested resources to ensure operability for customers) and Community Developed SDKs (software built by various members of our developer community and who own their own source code).

Also, if you would like to see a very simple demo application I built using our RingCentral JavaScript SDK to create Push Notifications (Subscriptions), you can view it (and follow the README.md file to setup the app to work with your own account) here:  https://github.com/bdeanindy/ringcentral-subscription-basics

If you use any of the resources available on Github, we ask that you Watch the repository for changes and issues, and if it works well for you "Star" the repository to help show your support. If you experience issues with one of the Github repositories, we just as that you add those issues to the Issue Tracker in Github.

Let me know if this helps, or if you require further assistance.
Share
1 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.