Access token failed for getting unsupported_grant_type error
Hi,
I've created a trial version account and checks with API for obtaining a new token using the following request,
Sample Request:
https://advancedapi.octoparse.com/token?username=<username>,&password=<password>&grand_type=password
I'm getting the error response as,
-
Official comment
Hi DurgaGanesh,
Sorry but you should put the parameter (username={username}&password={password}&grand_type=password) in the request body not in the request URL.
Please try again with the parameter in the body.
Check more common questions of API here: 5 Most Common API Requests on Octoparse
Comment actions -
Hi Yina, could you please update your answer to &grant_type instead of 'grand' - also, might be worth updating the documentation on http://dataapi.octoparse.com/help to detail that it should be set in the body.
Please sign in to leave a comment.
Comments
2 comments