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
Can anyone send the example of "restapi/oauth/token" api with dummy values?
Tags: rest api
Apr 4, 2018 at 6:09am   •   2 replies  •  0 likes
bill259

Can anyone send the example of "restapi/oauth/token" api with dummy values?

2 Answers
answered on Jun 23, 2019 at 12:42pm  

Your url: https://platform.devtest.ringcentral.com/restapi/oauth/token

Headers:

"Accept":"application/json“
"Content-Type":"application/x-www-form-urlencoded“
"Authorization",:"Basic <ClientID:ClientSecret in base 64> 

Here you can get the clientID and clientSecret from your developer account portal under dashboard tab which needs to be converted into base 64 format.

In body, we need to pass the parameters in following way :


username=<account phone number>&password=<account password>&extension=<your extension>&grant_type=password

username will be the phone number associated with the account. Again, you will get that from dashboard.


 0
answered on Jun 18, 2019 at 1:11pm  

Your url: https://platform.devtest.ringcentral.com/restapi/oauth/token

Headers:

"Accept":"application/json“
"Content-Type":"application/x-www-form-urlencoded“
"Authorization",:"Basic <ClientID:ClientSecret in base 64> 

Here you can get the clientID and clientSecret from your developer account portal under dashboard tab which needs to be converted into base 64 format.

In body, we need to pass the parameters in following way :

username=<account phone number>&password=<account password>&extension=<your extension>&grant_type=password

username will be the phone number associated with the account. Again, you will get that from dashboard.




 0
answered on Apr 4, 2018 at 11:32am  
Here is an example using curl and OAuth 2.0 password grant from our FAQ:

https://github.com/ringcentral/ringcentral-faq/blob/master/docs/fax.md

curl -u '{clientId}:{clientSecret}' -d 'grant_type=password&username={username}&extension={extension}&password={password}' -X POST https://platform.devtest.ringcentral.com/restapi/oauth/token

Does this help?


 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