So full disclosure - I have never done this before, but after following all the steps I have hot a brick wall.
All the IDs and codes, below, are redacted for security - I have been using the unedited versions :)
My end goal is send a URL request to search and return
information :
https://creatorapp.zoho.eu/OWNER/APPNAME/report/Fake_Data_Table_Report?fake_name.last_name=="Smith"
I’ve been trying to set up the Oauth settings, but don’t
know if I’m doing it right …
- In my API Console I have
set up a “Server Based Application” client type
- Both homepage and
redirect are set to https://creatorapp.zoho.eu/OWNER/APPNAME
- I have a Client ID 1000.6Dxxxxxxxx
- And a Secret 2423xxxxxxxx
To request the authorisation code I constructed the
following URL
https://accounts.zoho.com/oauth/v2/auth?response_type=code&client_id=1000.6Dxxxxxxxx &scope=ZohoCreator.report.READ&redirect_uri=https://creatorapp.zoho.eu/OWNER/APPNAME&access_type=offline
After putting that in a browser and going through the Zoho
auth I got the following URL
https://creatorapp.zoho.eu/OWNER/APPNAME?code=1000.1dxxxxxxxx&location=eu&accounts-server=https%3A%2F%2Faccounts.zoho.eu#Home
I understand this code is for a limited time
So now I have a code and am trying to generate the Access
Token and Refresh Token
https://<base_accounts_url>/oauth/v2/token?grant_type=authorization_code&client_id=<client_id>&client_secret=<client_secret>&redirect_uri=<redirect_uri>&code=<authorization_code>
https://accounts.zoho.eu/oauth/v2/token?grant_type=authorization_code&client_id=1000.6Dxxxxxxxx&client_secret=2423xxxxxxxx&redirect_uri=https://creatorapp.zoho.eu/OWNER/APPNAME&code=1000.1dxxxxxxxx
An error has occurred while processing your request. Please try again later.