Issue with Creating Subscription to Presence Event

  • 1
  • Problem
  • Updated 2 years ago
  • In Progress
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"
}
Photo of Abhi

Abhi

  • 70 Points

Posted 2 years ago

  • 1
Photo of Igor Bebin

Igor Bebin

  • 60 Points
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}/"
  }
}
Photo of Benjamin Dean

Benjamin Dean, Alum

  • 8,642 Points 5k badge 2x thumb
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.