News & Announcements User Community Developer Community

Welcome to the RingCentral Community

Please note the community is currently under maintenance and is read-only.

Search
Make sure to review our Terms of Use and Community Guidelines.
  Please note the community is currently under maintenance and is read-only.
Home » Developers
Subscription for post events for multiple accounts
Tags: getting started
Mar 20, 2018 at 9:01am   •   3 replies  •  0 likes
mahmoud-mahajna

Hi,


I'm planning to implement an integration app to subscribe on posts events, and allow different accounts/companies to use this integration app.


For this subscription, we have to pass the Authorization and Validation-Token as header parameters, is there a way to do that for multiple accounts?


The purpose is to publish an integration app to be apart of the integrations section in Glip, and allow companies install and use the integration.


what can be shown in the installation forum? Can I get the access token and the authorization of the account that wants to install the integration?

3 Answers
answered on Mar 26, 2018 at 2:35pm  
BTW, if you are interested in making this a public (vs. private) thread, you may get more responses from our community developers.

 0
answered on Mar 21, 2018 at 9:45am  
Thanks, that was helpful:).

I have another question.

To subscribe to posts events, we need to use this testing URL: https://platform.devtest.ringcentral.com/restapi/v1.0/subscription, and we have to pass as header parameters, the Authorization and the Validation-Token.
I just need to validate if I understand that correctly, the Validation-Token, is the token that was generated in the app, and wont be changed for all the subscription for every account that needs to use the integration. is that right?

And the Authorization is the access token that will get it from the OAuth flow, that corresponds the specific account, is that right? 

Are those parameters enough to listen to the specific account posts events?

Just to clarify, I'm trying to implement a public application, that multiple accounts/companies can use. And my purpose is to subscribe to the posts events for each account separately.

Thanks :).

Mahmoud


 0
answered on Mar 20, 2018 at 12:49pm  
> For this subscription, we have to pass the authorization and validation-token as header parameters, is there a way to do that for multiple accounts?

There is not for the 'Authorization' bearer access token request header. An access token is tied to an app+user so each user will have their own access token which your app needs to keep a track of. The unique id for a user is the user's extensionId so you can create a mapping of extensionId to access token in your app.

The 'Validation-Token' response header is independent of account and user extension since all you need to do with it is populate it with the value you receive in the 'Validation-Token' request header.

> what can be shown in the installation forum?

If you mean the App Gallery (https://apps.ringcentral.com), we can provide a description of and link to your app for installation into the user's account.

> Can I get the access token and the authorization of the account that wants to install the integration?

Yes, when a user wishes to install your app, you should initiate a 3-legged OAuth flow which will provide a login to the user and return an access token for the user to your app. If you are building a server-side app, you should use the Authorization Code flow. If you are building a client-side (in-browser) app, you should use the Implicit flow.

 0



A new Community is coming to RingCentral!

Posts are currently read-only as we transition into our new platform.

We thank you for your patience
during this downtime.

Try Workflow Builder

Did you know you can easily automate tasks like responding to SMS, team messages, and more? Plus it's included with RingCentral Video and RingEX plans!

Try RingCentral Workflow Builder

PRODUCTS
RingEX
Message
Video
Phone
OPEN ECOSYSTEM
Developer Platform
APIs
Integrated Apps
App Gallery
Developer support
Games and rewards

RESOURCES
Resource center
Blog
Product Releases
Accessibility
QUICK LINKS
App Download
RingCentral App login
Admin Portal Login
Contact Sales
© 1999-2024 RingCentral, Inc. All rights reserved. Legal Privacy Notice Site Map Contact Us