You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.
Forum Discussion
Conners
3 years agoNew member | Level 2
why do I get {"error": "Invalid OAuth2 token."}
I followed this article
https://dropbox.tech/developers/generate-an-access-token-for-your-own-account
but when I do this
curl https://api.dropbox.com/1/account/info -H "Authori...
Здравко
Legendary | Level 20
Conners wrote:...
what am I doing wrong?
Hi Conners,
The only wrong thing you are doing is following the outdated article. "long lived token" can't get issued anymore. Newly issued access tokens are always short lived. 🤷 That's it.
If you want long term access you can consider refresh token usage. 😉
Hope this helps.
Add: why don't you use /2/users/get_current_account instead?
Conners
3 years agoNew member | Level 2
PS: I am actually using in PHP this
$client = new \Spatie\Dropbox\Client();
this documentation doesn't really seem to talk about an example of short life tokens, just talks that there is an object (but no example) so it's all but useless to new users: but it was last updated only a few days ago. Whole situation seems very strange
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,884 PostsLatest Activity: 20 minutes agoIf you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!