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

amelesko's avatar
amelesko
Helpful | Level 5
3 months ago

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
    3 months 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 & Feedback

Node avatar for Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

5,915 PostsLatest Activity: 2 days ago
333 Following

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 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!