Reputation: 29
While implementing ZOHO CRM with our website. We found that there is a 3 steps authentication process to use the ZOHO CRM REST API. We are entangled with the auth token generation process.
We have the following queries related to this
How to generate 'auth token' in Zoho projects via API mode.
I am able to generate Authtoken via 'Browser Mode' but stuck in generating auth token via API mode !! We are calling below URL mentioned in the documentation :
https://accounts.zoho.com/oauth/v2/auth?scope=ZohoCRM.users.ALL&client_id={client_id}&response_type=code&access_type={"offline"or"online"}&redirect_uri={redirect_uri}
We want this to be automated to generate the "code" without hitting the "Accept" button and not have to do a self-client to generate the code every day? This is not a good solution to go. Do I need to generate the code every day manually? Isn't there any API to generate the auth code?
Please help me out.
Upvotes: 1
Views: 2788
Reputation: 11
Visit https://api-console.zoho.com/ and Make a self-client here
Add scopes and Generate
Using this auth code you can use to create a refresh token(its valid until you cannot revoke it)
using Refresh token you can create an access token(valid 1 hr). used postman to quick creation.
Upvotes: 1
Reputation: 162
Don't use Browser mode. used self Client.
used postman to quick creation.
Upvotes: 0