cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
If you’ve changed your email address, now's the perfect time to update it on your Dropbox account and we’re here to help! Learn more here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to I generate access_token via API to check my own dropbox file's metadata?

How to I generate access_token via API to check my own dropbox file's metadata?

TCLTC32
Explorer | Level 3

Hi there, my use case is the following:
(1) Generate a token for Dropbox API to access some metadata for my file (I am interested in whether a mission critical file is synced recently, thus the "server_modified" timestamp);

(2) Use this token to get the timestamp;

 

Currently I can have only "short lived" token which expired, or other ways that seems manual click / user authorization is needed each time I access my own file programmatically. 

Any thoughts?

1 Reply 1

Здравко
Legendary | Level 20

@TCLTC32 wrote:

...

Currently I can have only "short lived" token which expired, ...


Hi @TCLTC32,

There are no more long lived access tokens (no new at least). Using refresh token you don't need to authorize by hand again and again. Once existing short lived access token expires, it can be automatically "refreshed". If you are using some supported SDK, the only thing you have to do is adapt your application to work with refresh token. The SDK will take care for the rest. If you are performing API calls direct, you should implement some refresh logic in your application. For more information take a look here. 😉

Hope this helps.

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Здравко Legendary | Level 20
What do Dropbox user levels mean?