Need to see if your shared folder is taking up space on your dropbox 👨‍💻? Find out how to check here.

Forum Discussion

HampdenTech's avatar
HampdenTech
New member | Level 1
2 years ago
Solved

Dropbox API - check_and_refresh_access_token

I have a valid app_key, app_secret, and refresh_token and I'm trying to call the check_and_refresh_access_token function in the Dropbox API for Python. Here is the code... def refresh_dropbox_token(...
  • Greg-DB's avatar
    2 years ago

    The check_and_refresh_access_token method doesn't actually return a token value; it would either internally update the access token in the client, or otherwise raise an exception, so you don't need to check the return value.

    Also, you don't actually need to call check_and_refresh_access_token yourself at all. The Dropbox client will automatically call check_and_refresh_access_token itself as needed. You just need to set up the Dropbox object with your refresh token, app key, and app secret as you have and use that. It will automatically handle the refresh process for you internally.

About Dropbox API Support & Feedback

Node avatar for 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!