cURL REST API: INVALID TOKEN
Hello all,
I was having problems with the PHP SDK, so am also trying with cURL, however I'm getting a INVALID TOKEN response.
I've successfully received both an access_token and refresh_token from
https://accounts.zoho.eu/oauth/v2/token endpoint.
I'm then using curl and pasting that access_token with REST API. For example:
-
curl "https://www.zohoapis.com/crm/v2/settings/modules" -X GET -H "Authorization: Zoho-oauthtoken PASTED_ACCESS_TOKEN_FROM_PREVIOUS_RESPONSE"
However, I'm getting the following error:
- {"code":"INVALID_TOKEN","details":{},"message":"invalid oauth token","status":"error"}
Are these the correct steps?
Many thanks.