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
hi, thanks for the reply, i am more than happy to get short life tokens but I cannot find any refernce material out there, why is that?
edit: I see your link is information on an alternate call however when I call it I get
Error in call to API function "sharing/add_folder_member": Your API app is an "App Folder" app. It is not allowed to access this API function
however at the permissions level I already have everything ticked
- Здравко3 years agoLegendary | Level 20
You can take a look on Dropbox API v2 documentation for available access points and their use in curl. For guide how you can use long term account access using API look on here.
Add: You can't share anything when your restricted your application in an application specific folder. If you need to manage users sharing, you have to recreate the application with proper access type (it's not a matter of preferences and you can't do it there).
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,884 PostsLatest Activity: 14 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!