Your workflow is unique 👨💻 - tell us how you use Dropbox here.
Forum Discussion
smitpatel
1 year agoNew member | Level 2
Regarding the automatic refreshing of the access token
def initialize_dropbox_client(): access_token = "my access token" dbx = dropbox.Dropbox(access_token) dbx._oauth2_access_token_expiration = time.time() + 14400 # Assume token expi...
Greg-DB
Dropbox Community Moderator
1 year agoI see you're using the Dropbox Python SDK and are trying to implement the refresh process yourself. Please note that the SDK can handle the refresh functionality for you automatically, so you don't need to implement that yourself.
As long as you provide all of the relevant credentials to the 'Dropbox' object like in the example here, it will automatically handle the refresh process for you whenever needed.
About 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!