我正在按照文档中的说明通过我的OAuth应用程序获取令牌,但我总是收到以下错误:
我的操作如下:1.我收到代码:{"error_description": "Invalid OAuth client credentials", "error":"unauthorized_client"}
https://bitbucket.org/site/oauth2/authorize?client_id={my_application_key}&response_type=code
2.我想为此代码接收一个令牌:curl -X POST -u "client_id: my_application_secret" https://bitbucket.org/site/oauth2/access_token -d grant_type=authorization_code -d code={code}
我可能漏掉了什么吗?
-u client_id:secret
中,您应该放置您的 ConsumerKey 和 ConsumerSecret。 - saraf.gahl