Your workflow is unique 👨‍💻 -  tell us how you use Dropbox here.

Forum Discussion

amelesko's avatar
amelesko
Helpful | Level 5
1 year ago
Solved

API access with refresh_token in python

I have an app that I built in python and I'm trying to have sustained access to read from files in a folder   I've gone through the entire process of getting the user (myself) to sign in and get ...
  • amelesko's avatar
    amelesko
    1 year ago

    Well I solved this and was just being dumb. Sorry for any confusion

     

    It turns out that just proceeding with

    dbx = dropbox.Dropbox(oauth2_refresh_token=refresh_token, app_key=app_key, app_secret=app_secret)

    works as it should

     

    My mistake was saving the refresh_token to a DB and pulling it from there (I removed that step in my example code here to be more concise), and the DB was automatically removing a couple ending characters from the token

About Dropbox API Support and Feedback

Node avatar for Dropbox API Support and Feedback
Get help with the Dropbox API from fellow developers and experts.

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!