Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
sydneyfr
3 years agoNew member | Level 2
How to get token access into dropbox without it expiring (or copy .httr-oauth file)
I'd like to use dropbox as a remote storage center for some text files created by a deployed Shiny app. I need web users to be able to submit to a form which writes these files back to dropbox. In RS...
Greg-DB
Dropbox Community Moderator
3 years agosydneyfr Здравко is correct; Dropbox is now issuing short-lived access tokens (and optional refresh tokens) instead of long-lived access tokens. Short-lived access tokens expire after a short period of time, so you'd receive a 401 expired_access_token error when attempting to use a short-lived access token that has expired. You can find more information on this migration here.
Apps can still get long-term access by requesting "offline" access though, in which case the app receives a "refresh token" that can be used to retrieve new short-lived access tokens as needed, without further manual user intervention. You can find more information in the OAuth Guide and authorization documentation. There's a basic outline of processing this flow in this blog post which may serve as a useful example.
For reference, while the creation of new long-lived access tokens is now deprecated, we don't currently have a plan to disable existing long-lived access tokens. (If that changes, we will of course announce that ahead of time.) That being the case, you can continue using existing long-lived access token(s) without interruption, if you have any.
Dropbox can't offer support for RStudio/rdrop2/drop_auth in particular as those aren't made by Dropbox, so you may want to refer to the support resources and documentation for those for information on what functionality they support for this.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If 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, Facebook or Instagram.
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!