Hello
I am developing a chrome extension, from where trying to perform a outbound ringout using sandbox account.I have added 2 direct numbers in my sandbox account.
As according to rest API i am performing ringout but i am getting error and can not place successfull ringout.
Here is code that what i am passing to ajax call.
and i am getting this error:
I am developing a chrome extension, from where trying to perform a outbound ringout using sandbox account.I have added 2 direct numbers in my sandbox account.
As according to rest API i am performing ringout but i am getting error and can not place successfull ringout.
Here is code that what i am passing to ajax call.
var url = 'https://platform.devtest.ringcentral.com/restapi/v1.0/account/~/extension/~/ringout';
var data = { "from": {"phoneNumber": "1626*******"},/*from parameter is optional if there is a default number in user's forwarding numbers */
"to": {"phoneNumber": "1315*******"}, /*to parameter is required */ "playPrompt": true /*optional field */ }; var headersArray = [ {"name": "Content-Type", "value": "application/json"}, {"name": "Authorization", "value": "Bearer "+tokenObj.access_token} ];
and i am getting this error:
"{ "errorCode" : "InvalidParameter", "message" : "Unrecognized token 'from': was expecting 'null', 'true', 'false' or NaN\n at line: 1, column: 6", "errors" : [ ] }"