question

Gregg Schmidt avatar image
Gregg Schmidt asked Gregg Schmidt answered

headers for sms password flow

I hate to do this but while my sandbox app has met ringCentral's requirements for graduation, it hasn't met mine.

Somewhere in the app, it understandably performs the password flow auth.

The problem is I don't know where or when this is happening.

I would love to get the headers and parameters required so that I can generate what I think is simple code myself. This also means that if something goes wrong in the future, I have a much better chance of diagnosing the issue and fixing it quickly.

I can mimic the http request below as long as I know which value to use in place of <some long unidentified string>


POST /restapi/oauth/token HTTP/1.1 
Accept: application/json 
Content-Type: application/x-www-form-urlencoded 
Authorization: Basic <some long unidentified string>
grant_type=password&username=<username>&extension=<simpleextension ie: 101>&password=<password>


app administration
1 |1500 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Anirban avatar image
Anirban answered

What is your question exactly?

1 |1500 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Gregg Schmidt avatar image
Gregg Schmidt answered Phong Vu commented

Sorry about the confusion. There's a chance I'm working on too many things at a time.


What piece of data is the string of text to the right of "Authorization: Basic " shown in the code below ?

POST /restapi/oauth/token HTTP/1.1  
Accept: application/json  
Content-Type: application/x-www-form-urlencoded  
Authorization: Basic cmVsLWFsbC1wZXJtaXNzaWXFjMmpRZmlQcnlkSUkweE92QQ== 
grant_type=password&username=18559100010&extension=101&password=121212  


1 comment
1 |1500 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

It is the base64 encoded string of your "app-client-id:app-client-secret"

0 Likes 0 ·
Gregg Schmidt avatar image
Gregg Schmidt answered

Thank you Phong , your response was extremely helpful.

Sorry I didn't respond sooner.

It took me until this morning to get it work as expected.


1 |1500 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Developer sandbox tools

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:

  • On MacOS: press "fn + command + f2" keys
  • On Windows: press "Ctrl + F2" keys