我正在從API v1遷移到API v2,並且在此處有此問題。 首先我收到令牌這個請求:Dropbox API v2 get_current_user
https://api.dropbox.com/oauth2/token
然後我打電話
https://api.dropboxapi.com/2/users/get_current_account
加入「授權:承載XXXXXXX」頭獲取用戶的顯示名稱,但它不能每次都與此消息:
{protocol = http/1.1,code = 400,message = Bad Request,url = https://api.dropboxapi.com/2/users/get_current_account}
與API v1調用相同的代碼工作得很好。有什麼我錯過了嗎?謝謝
[交叉引用:https://www.dropboxforum.com/hc/en-us/community/posts/210658986-API-v2-get-current用戶錯誤] – Greg