Problem in extracting access token after receiving authorization code
I am making a POST HTTP call on the following URL to extract the access token after receiving the authorization code …
https://www.box.com/api/oauth2/token?grant_type=authorization_code&client_id=CLIENT_ID&client_secret=CLIENT_SECRET&code=CODE&redirect_uri=http%3A//localhost
The response I am getting is the following JSON ...
{"error":"invalid_request","error_description":"Invalid grant_type parameter or parameter missing"}
Could someone please help me out? My registered redirect URI is http://localhost
-
How did yo uget this working? I have tried including the parameters both in the body, and also as query parameters. I have tried json encoding the body, etc, nothing works i get the same error for invalid request complaing about the missing or invalid grant type?
does the grant type need to be a query param and the other stuff need to be in the body?
Please sign in to leave a comment.
Comments
6 comments