我正在从API v1迁移到API v2并在此处遇到此问题 . 首先,我收到带有此请求的令牌:
https://api.dropbox.com/oauth2/token
然后我打电话
https://api.dropboxapi.com/2/users/get_current_account
添加“Authorization:Bearer xxxxxxx”标头以获取用户的显示名称,但每次使用此消息时都会失败:
{protocol = http / 1.1,code = 400,message = Bad Request,url = https://api.dropboxapi.com/2/users/get_current_account}
使用API v1调用的相同代码工作得很好 . 我错过了什么吗?谢谢
1 回答
你为什么不使用像CloudRail这样的SDK?那么它只是一个函数调用,如文档here