0
votes

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

1
[Cross-linking for reference: dropboxforum.com/hc/en-us/community/posts/… ] - Greg

1 Answers

1
votes

Why don't you use a SDK like CloudRail? Then it would be just a function call like documented here