How can we get access token using refresh token. is it possible. Can you please guide me for this ?
I want to implement that on server side in node typescript and what header , body required for this ?
Please help me out.
Thank You In Advance.
How can we get access token using refresh token. is it possible. Can you please guide me for this ?
I want to implement that on server side in node typescript and what header , body required for this ?
Please help me out.
Thank You In Advance.
Are you sure about what you asked? People uses a refresh token to get a new access token. You want the other way around and it is not possible.
Hey @Phong Vu My bad. How can I get access token using refresh token using client ID and client secrete. or any other all possible way. Can you please suggest/share with me.
Thanks
var endpoint = '/restapi/oauth/token' var url = 'platform.devtest.ringcentral.com' var basic = [RC_CLIENT_ID] + ":" + [RC_CLIENT_SECRET] var headers = { 'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8', 'Accept': 'application/json', 'Authorization': 'Basic ' + Buffer.from(basic).toString('base64') } var body = querystring.stringify({ 'grant_type' : 'refresh_token', 'refresh_token' : 'REFRESH_TOKEN' }) var options = {host: url, path: endpoint, method: 'POST', headers: headers} // Make an HTTPS POST request with the params above
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.