I am migrating from API v1 to API v2 and have this problem here. First i receive the token with this request:
https://api.dropbox.com/oauth2/token
Then i call
https://api.dropboxapi.com/2/users/get_current_account
adding "Authorization: Bearer xxxxxxx" header to get user's display name, but it fails every time with this message:
{protocol=http/1.1, code=400, message=Bad Request, url=https://api.dropboxapi.com/2/users/get_current_account}
The same code with API v1 calls worked just fine. Is there anything i missed? Thanks