Forum Discussion

Simson G.'s avatar
Simson G.
Explorer | Level 3
2 years ago
Solved

Dropbox tutorial is not updated for OAuth and assumes that I can get an ACCESS TOKEN...

I am a fairly experienced developer but new to the Dropbox API. I am on this page, the Dropbox for Python Tutorial. The example assumes that I can get an ACCESS TOKEN from the App Console. However...
  • Greg-DB's avatar
    2 years ago

    Dropbox offers two different ways to get an access token:

    1. using the OAuth app authorization flow
    2. using the "Generate" button on the app's page on the App Console (under "Generated access token" in the "OAuth 2" section on the "Settings" tab of the app's page)

    That "Generate" button is what the Python tutorial is referring to. Note though that the "Generate" button can only be used to get an access token for the particular account that owns the app, and can only generate short-lived access token, not a refresh token.

     

    If you need long-term access, or to have any other accounts connect to the app, you'll need to use the OAuth app authorization flow.

     

    The Dropbox Python SDK does offer support for processing the OAuth app authorization. You can find examples of processing the OAuth app authorization flow with the Dropbox Python SDK here.

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!