Skip to main content
Question

curl command for requesting access token


What is the curl command for requesting an access token using Password Flow?

2 replies

curl -X POST "https://platform.ringcentral.com/restapi/oauth/token" 
-H "Accept: application/json"
-H "Content-Type: application/x-www-form-urlencoded" -H "Authorization: Basic <access-token>" -d "username=<user-phone-number>&password=<user-password>&extension=<user-extension>&grant_type=password
Source:
https://developer.ringcentral.com/api-docs/latest/index.html#!#RefPasswordFlow

Here the problem you are facing is the header Authorization which is Basic <base64 of appKey:appSecret> .. If you pass that header in curl, your problem will be solved


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