API Self Client - failing to get a refresh token / access token from authtooauth call

API Self Client - failing to get a refresh token / access token from authtooauth call

Hi,

Do you have 1 example of how to do this correctly ?

I have an auth token and believe I need to use "Self Client" model.

So, using an existing auth token, I build a POST with the following data (json-formatting the below gave me an invalid response type error):

client_id=1000.xxxxxxxxxxxx&client_secret=yyyyyyyyyyyyyyyyyyyy&grant_type=authtooauth&authtoken=9b3zzzzzzzzzzzzzzzzzzz4b&scope=ZohoCRM.modules.ALL


I send this to 

https://accounts.zoho.com/oauth/v2/token/self/authtooauth

since my Zoho instance is in accounts.zoho.com.

But I get returned invalid_authtoken. Even though I know it exists.


Please help - we have a little over 3 months to go now...and all I want to do is replace the 25 lines of code that look up a contact / lead from a telephone number using v1 API with v2.

Thanks,
Simon.