When I try to ping the URL using httprequest Iam hitting with error
below is the URL:
"https://platform.devtest.ringcentral.com/restapi/oauth/token?grant_type=password&username=180244XXXXX&password=VeXXXXXX&extension=101"
Method : POST
Header Key:
"Authorization" : "Basic OC1qb09WRThUdktQbHppNHdVbjJfdzpHT1ozWE5nblJ1MlhxZUV4dnphUXp3NkwycFFwVGhSWEdPYmwwd2poVkF2dw=="
"Content-Type" : "application/x-www-form-urlencoded;charset=UTF-8"
Error :
400 Bad Request
{
"error" : "invalid_grant",
"errors" : [ {
"errorCode" : "OAU-140",
"message" : "Invalid resource owner credentials"
} ],
"error_description" : "Invalid resource owner credentials"
}
When I try give all above details in web API checker:
http://ringcentral.github.io/api-explorer/#!/Authentication/oauth_token_post
I am able to get the response.
Please let me know if am missing anything here.