There is no auth function for this request

I am new to access with DropBox Api (see https://www.dropbox.com/developers-v1/core/docs#oauth2-methods ). Now the problem is rocking me -

1) I get access_token successfully. 2) I want to view user information by requesting " https://api.dropboxapi.com/1/account/info ". However, the result:

{"error_description": "No auth function available for given request", "error": "invalid_request"} 

It seems that I should provide the address to make sure that I am already authenticated. But how? I did not see anything in the Documents ...? Anywhere? Thanks

+5
source share
1 answer

The API uses OAuth 2, so you will want to Bearer ACCESSTOKEN " Authorization " header with the value " Bearer ACCESSTOKEN ", where ACCESSTOKEN is the access token obtained through the OAuth process.

+3
source

Source: https://habr.com/ru/post/1233302/


All Articles