I'm a newbie to access with DropBox's Api (See: https://www.dropbox.com/developers-v1/core/docs#oauth2-methods). Now there's a problem rocking me——
我是DropBox的Api访问的新手(参见:https://www.dropbox.com/developers-v1/core/docs#oauth2-methods)。现在有一个问题在震动我 -
1) I get an access_token successfully. 2) I wanna see the user's detailled info by directly calling "https://api.dropboxapi.com/1/account/info". However the result is:
1)我成功获得了access_token。 2)我想通过直接拨打“https://api.dropboxapi.com/1/account/info”来查看用户的详细信息。但结果是:
{"error_description": "No auth function available for given request", "error": "invalid_request"}
It seems that I should give the address something to make sure that I'm already authenticated. But how? I didn't see anything in Documents……? Any where? Thanks
似乎我应该给地址一些东西,以确保我已经通过身份验证。但是怎么样?文件中没有看到任何内容......?在哪里?谢谢
1 个解决方案
#1
3
The API uses OAuth 2, so you'll want to attach an "Authorization
" header with the value "Bearer ACCESSTOKEN
", where ACCESSTOKEN is the access token you obtained through the OAuth process.
API使用OAuth 2,因此您需要附加值为“Bearer ACCESSTOKEN”的“Authorization”标头,其中ACCESSTOKEN是您通过OAuth流程获取的访问令牌。
#1
3
The API uses OAuth 2, so you'll want to attach an "Authorization
" header with the value "Bearer ACCESSTOKEN
", where ACCESSTOKEN is the access token you obtained through the OAuth process.
API使用OAuth 2,因此您需要附加值为“Bearer ACCESSTOKEN”的“Authorization”标头,其中ACCESSTOKEN是您通过OAuth流程获取的访问令牌。