question

abhi2110 avatar image
abhi2110 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"
}


General Topic
1 |1500 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}/"
  }
}
1 |1500 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.
1 |1500 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.

Developer sandbox tools

Using the RingCentral Phone for Desktop, you can dial or receive test calls, send and receive test SMS or Fax messages in your sandbox environment.

Download RingCentral Phone for Desktop:

Tip: switch to the "sandbox mode" before logging in the app:

  • On MacOS: press "fn + command + f2" keys
  • On Windows: press "Ctrl + F2" keys