We Want to Hear From You! What Do You Want to See on the Community? Tell us here!
Forum Discussion
Sufiyanashraf
3 years agoExplorer | Level 3
How can I retrieve refresh token automatically in Python API for long lasting app?
I am trying to build an app that automatically updates files every minute from my server PC to dropbox API using the python app. But after 4 hours, it gives an expired token error. what I do is go to the token URL and click on allow button, copying refresh token, and use this in my code to get access token and work using it and to implement if condition to check if the response shows an error of expired token then again requests a new access token using refresh token that received in the previous response. Here is my code in Github. Please check if there is any mistake.
Solved! Was doing a little mistake!
1 Reply
- Greg-DB3 years ago
Dropbox Community Moderator
Thanks for following up. I'm glad to hear you got that solved.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.6,037 PostsLatest Activity: 7 minutes ago
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 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!