You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.

Forum Discussion

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

Access Toke - after using the refresh token method how can i get the new access token

i am using the offline long token

 

i have an access token  XXX

and refresh token  YYY

 

I used the token until it expired

then I used the refresh token method with null to refresh all my scopes.

 

how can i extract the new access token from the client  in order to save it?

 

 

  • Здравко's avatar
    Здравко
    Legendary | Level 20

    Hi Omri1984,

    The Dropbox .NET SDK (the one most probably you are interested in) is NOT implemented in a way such thing be possible, unfortunately. Probably coder mistake. You need to "hack" DropboxRequestHandler, to be possible something like (or in the DropboxRequestHandlerOptions part, at least).

    If you are interested, in other SDKs it's possible the same without hacks, in spite improvements are possible there too (Java SDK for instance).

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

    That's correct, the official Dropbox .NET SDK does not offer a way to retrieve the latest short-lived access token that it has, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though.

     

    That's not needed for the operation of the .NET SDK though. You don't actually need to supply a short-lived access token. The .NET SDK will automatically retrieve new short-lived access tokens for you, and it doesn't require an existing short-lived access token to do so.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

5,910 PostsLatest Activity: 3 days ago
333 Following

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!