Explain Subscription API (Presence API)

  • 1
  • Question
  • Updated 4 months ago

I am trying to use Subscription API to get the call duration of the current ongoing call. But I didn't found much about this API in API Explorer. Can anyone please explain me this API in details and how to get call details using ongoing calls "sessionId"?

Thanks!

Photo of Devanand W

Devanand W

  • 154 Points 100 badge 2x thumb

Posted 2 years ago

  • 1
Photo of Anton Nikitin

Anton Nikitin, Official Rep

  • 2,904 Points 2k badge 2x thumb
Will this help: http://ringcentral-api-docs.readthedocs.io/en/latest/notifications_subscriptions/ ?

At the same time it is impossible to get call direction directly from push notification. We are adding this option in one of the future releases.
(Edited)
Photo of AK

AK, Official Rep

  • 4,402 Points 4k badge 2x thumb
Our Subscription (Push Notification) API resource empowers developers to enable their client application(s) to create a single subscription (to one or more extension's) and continually receive push notifications in real time for each subscribed extension.

However, this subscription has an expiration time but using the official RingCentral SDK’s enables developers to automatically renew the subscription(s) on a timely basis.

When using this approach for your application(s) to receive events on your RingCentral account, no polling is involved.

Subscription API: https://developer.ringcentral.com/api-docs/latest/index.html#!#Notifications.html

View the (official and community developed) RingCentral SDKs: https://developers.ringcentral.com/library/sdks.html

We also have a Tutorial in node.js which you could take a look at under the 'Tutorials' section on our developer portal:
https://ringcentral.github.io/tutorials/
https://ringcentral-tutorials.github.io/subscription-basics-nodejs-demo/
Photo of Andy Haas

Andy Haas

  • 322 Points 250 badge 2x thumb
On this subscription are we able to do the entire company? If so how would we go about this?
Photo of Anton Nikitin

Anton Nikitin, Official Rep

  • 2,904 Points 2k badge 2x thumb
Strange, I will try to figure out and get back to you.
Photo of Andy Haas

Andy Haas

  • 322 Points 250 badge 2x thumb
This is working. allowSeeMyPresence was turned off for the user that I was using.
Photo of Wesley Hunt

Wesley Hunt

  • 100 Points 100 badge 2x thumb
allowSeeMyPresence is turned on for my users, I can see webhook presence events for my account, however when I specify another extension when creating a new webhook I get 403. What privilege is needed to create a webhook for an extension other than myself?
Photo of VB

VB, Official Rep

  • 1,470 Points 1k badge 2x thumb
To be able to capture/listen to another extensions presence , the extension that is authenticated should be an admin extension. You should have 'Read Presence' and 'Webhook Subscription' permission added on to your app.