Get Access Token With The Use Of Refresh Token Using Zoho Deluge

In this tutorial, we are going to learn to get an access token using a refresh token using the deluge
Access Token will expire in an Hour.

So If you need to get data through an access token we need to create an access token dynamically from the refresh token

Here In this tutorial, I am going to show the example of getting an access token using the Refresh Token.

Structure Example:

token = invokeurl [
              url :"https://accounts.zoho.com/oauth/v2/token? 
              refresh_token=1000.XXXXXXXXXXXXXXX.XXXXXXXXXXXXXXX&client_id=1000.XXXXXXXXXXXXXXX&client_secret=XXXXXXXXXXXXXXXXXXX&grant_type=refresh_token" 
              type :POST 
         ]; 
info token;

In token variable, You will get access_token, api_domain, token_type, and expires_in

From that, you need to get access_token.

 

access_token = token.get('access_token'); 
info access_token;

Here, You have got access_token.

 

To create an application for the Client ID, Client Secret please follow Access token from refresh token.

Submit a Comment

Your email address will not be published. Required fields are marked *

Subscribe

Select Categories