I have two separate Company Accounts (one main office, one satellite office, each with their own main number) but when calling RingCentral support I hear (press 1 if calling about account called xxxx and 2 if calling about account called yyyy).
Everything worked fine when developing my program in the sandbox for the main office and the program is fully operational never generating any errors.
When I created a sandbox account for the satellite office, getting the Access Token (exactly as I did for the main office) generates the following and I cant figure out why:
Server: nginx/1.8.0Date: Wed, 20 Apr 2016 00:41:01 GMTContent-Type: application/json;charset=UTF-8Content-Length: 100Connection: keep-aliveRcrequestid: 8e2782ee-0690-11e6-bb68-005056bb8059Routingkey: SJC12P01PAS02X-Loadmetric: 6Www-Authenticate: Basic realm="RingCentral REST API"Content-Language: en
{
"error": "unauthorized_client"
"error_description": "Unauthorized for this grant type"
}
The header is
Authorization: Basic OENPRWxEUHRRMWVYY25PMWl6bk1GUxxxxxxxxxxFfS0d6QW1EaGd6NEVBMlg4TjQybC1TRUtiWXRLamZGSDMydw==
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
The Payload is:
grant_type=password&username=+15621234567&password=mypassword
Any help would be greatly appreciate.