我试图通过我的 OAuth 应用程序获取令牌,如文档中所写,但我总是收到此错误
{“error_description”:“无效的 OAuth 客户端凭据”,“error”:“unauthorized_client”}
我的行动:
我收到代码:
https://bitbucket.org/site/oauth2/authorize?client_id={my_application_key}&response_type=code
我想收到此代码的令牌:
卷曲-X POST -u“client_id:my_application_secret” https://bitbucket.org/site/oauth2/access_token -d grant_type=authorization_code -d code={code}
也许我错过了什么?