Skip to main content
Solved

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);


Best answer by Tyler850957020

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.


View original
Did this thread help you find an answer to your question?

3 replies

PhongVu
Community Manager
Forum|alt.badge.img
  • Community Manager
  • 2322 replies
  • May 19, 2023

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.


  • Community Manager
  • 420 replies
  • Answer
  • May 19, 2023

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.



  • Author
  • New Participant
  • 1 reply
  • May 22, 2023

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

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

Thank you.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings