First steps of the Coinbase Oauth Authorization seem to work fine. I request the customer code via the following URL:
"https://www.coinbase.com/oauth/authorize?response_type=code&client_id=XXXXXXXXXXXXXXXXXXXX&redirect_uri=urn:ietf:wg:oauth:2.0:oob&scope=user+balance"
I get back the code via URL.. Then trying to request the token with given CODE and CLIENT SECRET and CLIENT ID:
"https://api.coinbase.com/oauth/token&grant_type=authorization_code&code=XXXXXXX&redirect_uri=urn:ietf:wg:oauth:2.0:oob&client_id=XXXXXXX&client_secret=XXXXXXX"
With that I get an "404 Not found" Error..
Is there any obvious mistake in the URL.. or is it most likely an issue with the Code or Secret etc. itself? If Yes.. anything important to know there?
All that was followed from the description: https://developers.coinbase.com/docs/wallet/authentication
Thank you so much for help!
Requesting it as a POST BODY did the job! Although important changes: - Redirect uri needs to be a proper external domain, uri for mobile apps will create a 401 Error.. -Encoding in ascii
Got the rough structure from: https://docs.python.org/3/library/urllib.request.html
Thanks a lot for the fast help!