Generate grant, refresh and access tokens in Zoho
git clone https://github.com/joseanfernandez/zoho-easy-tokens.git
cd zoho-easy-tokens
npm install
You need your:
- clientId
- clientSecret
- redirectUri
Go to developer console
Register your application.
Copy this data in your config.js and change the scope if it is necesary.
npm start
http://localhost:3005/url/for/grant/token
You will get redirected to the "redirectUri" that you specified during registration of the app. Note down the "code={grant_token}" parameter. This is a short-lived token (valid only for a minute) and will be used to generate the access token and refresh token.
http://localhost:3005/get/tokens/{YOUR_GRANT_TOKEN}
A copy of this tokens will be save in tokens.log file.