API 1.1 Always throws error
Solved!Posted in General by Ajin Sat Jan 28 2017 20:10:39 GMT+0000 (Coordinated Universal Time)·9·Viewed 5,906 times
I tried API 1.1 Tried to replicate the same code generated with API Key and Token, The response is always
{
"message": "Invalid Auth Token.",
"success": false
}
URL used is production url
Even the python wrapper throws the same
Please crosscheck the API key and Auth Token being passed.
I am using the exact API Key and Auth Token generated in doc example page. Copy pasted the same code.
It is fixed. I was using the API and auth token generated in doc page. That was not the correct one. Solved when I used the api creds available at https://www.instamojo.com/integrations
The API creds created along with the docs is causing confusion. either you remove it or put the correct api key and token with the code generated from docs
Docs page are public docs, we don't have any login there(at least not related to anyone's Instamojo account) and hence it is not possible to put someone's credentials there. Docs usually contain dummy data.
marked this as solved
Well I agree, but this page is causing confusion: https://www.instamojo.com/developers/
It says: We've generated the keys for you and included them in the examples.
And then there is the link to https://docs.instamojo.com/docs/
This will confuse people.