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

  • 1
  • Question
  • Updated 4 months ago
Can anyone send the example of "restapi/oauth/token" api with dummy values?
Photo of Bill Fox

Bill Fox

  • 150 Points 100 badge 2x thumb

Posted 4 months ago

  • 1
Photo of John Wang

John Wang, Official Rep

  • 5,436 Points 5k badge 2x thumb
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?