question

Allen Jones avatar image
Allen Jones asked Allen Jones answered

SUB-528 [SubscriptionWebSocket] application permission is required for [WebSocket]

In the settings for the app I have "Webhook Subscriptions" checked, but all I get is application permission denied. I am missing something and I do not know what. Can some one point me in the correct direction.

var bodyParams = new CreateSubscriptionRequest();
bodyParams.eventFilters = new[] { "/restapi/v1.0/account/~/extension/101/presence?detailedTelephonyState=true" };
bodyParams.deliveryMode = new NotificationDeliveryModeRequest()
{
transportType = "WebSocket",
address = "ws://127.0.0.1:7890",

};
bodyParams.expiresIn = 3600;
var resp = await _restClient.Restapi().Subscription().Post(bodyParams);


webhookssubscriptionpermissions
1 |3000

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

Tyler Liu avatar image
Tyler Liu answered

Disregard my answer if you want WebHook instead of WebSocket.

It seems that you are using C# language. Please check https://github.com/ringcentral/RingCentral.Net/tree/master/RingCentral.Net.WebSocket

You cannot create websocket subscription via RestAPI. So you'd better use the official SDK extension I provided above.

And yes, app permission is required. Please create a ticket to request for permission: https://developers.ringcentral.com/support/create-case

This feature is not yet fully public so you cannot add this permission yourself.


1 |3000

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

Phong Vu avatar image
Phong Vu answered

The transportType must be "WebHook", not "WebSocket"

{
    transportType = "WebHook",
    address = "https://...."
};

If you still face problem, please refer to this quick start for a full demo project.

1 |3000

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

Allen Jones avatar image
Allen Jones answered

I am taking your advice and requesting permission for this feature via:

https://developers.ringcentral.com/support/create-case

Thank you.

1 |3000

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