I'm trying to get a token through my OAuth application as written in the documentation, but I always get this error
{"error_description": "Invalid OAuth client credentials", "error": "unauthorized_client"}
My actions:
I receive the code:
https://bitbucket.org/site/oauth2/authorize?client_id={my_application_key}&response_type=code
I want to receive a token for this code:
curl -X POST -u "client_id: my_application_secret" https://bitbucket.org/site/oauth2/access_token -d grant_type=authorization_code -d code={code}
Maybe I'm missing something?
Thanks!