We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.

Forum Discussion

Oleks's avatar
Oleks
Explorer | Level 4
3 years ago

Unable to update access token in postman.

  • I have a post here showing the basic flow of getting and using a refresh token to retrieve new short-lived access tokens on demand which may be helpful.

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox Staff

    I see you're trying to call the /2/auth/token/from_oauth1 endpoint. If this is a new integration, you should not be using that endpoint. This endpoint is only meant for use if you have pre-existing OAuth 1 access tokens, and the oauth1_token and oauth1_token_secret parameters would refer to the old OAuth1 access token key and secret, not your client ID and secret. This endpoint should not be used as part of the current OAuth 2 app authorization flow.
     
    OAuth 1 access tokens were a feature of an old version of the Dropbox API. If you've only used API v2 and OAuth 2, you wouldn't have any OAuth 1 access tokens. If you don't have pre-existing OAuth 1 access tokens, for instance, if you're just developing the integration now, you should send the user through the normal OAuth 2 app authorization flow.
     
    You can find information on how this works in the OAuth Guide and authorization documentation

    • Oleks's avatar
      Oleks
      Explorer | Level 4

      Thanks a lot! It would be great to guide how to request a new access token for Oauth2. 

      • Greg-DB's avatar
        Greg-DB
        Icon for Dropbox Staff rankDropbox Staff

        I have a post here showing the basic flow of getting and using a refresh token to retrieve new short-lived access tokens on demand which may be helpful.