What is the curl command for requesting an access token using Password Flow?
What is the curl command for requesting an access token using Password Flow?
curl -X POST "https://platform.ringcentral.com/restapi/oauth/token"Source:
-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
curl -X POST "https://platform.devtest.ringcentral.com/restapi/oauth/token"; \
-H "Accept: application/json" \
-H "Content-Type: application/x-www-form-urlencoded" \
-u "<appKey>:<appSecret>" \
-d "username=<username>&password=<password>&extension=<extension>&grant_type=password"
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
Using the RingCentral Phone for Desktop, you can dial or receive test calls, send and receive test SMS or Fax messages in your sandbox environment.
Download RingCentral Phone for Desktop:
Tip: switch to the "sandbox mode" before logging in the app:
5 People are following this question.
Does RingCentral have the Superuser concept ?
N/A Authorization Flows using Server-only (No UI) and Public Application Type
Is there an API or way to auto-login a user to RingCentral when using RingCentral embeddable?
In order to call this API endpoint, user needs to have [ThirdPartyAppAccess] permission.
Why am I getting 'OAU-213: Token Not Found' when refresh token has not expired?