Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

No auth function available for given request

Tags:

dropbox-api

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——

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:

{"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

like image 386
xqMogvKW Avatar asked Oct 09 '15 01:10

xqMogvKW


1 Answers

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.

like image 178
user94559 Avatar answered Sep 20 '22 17:09

user94559