Forum Discussion

TCLTC32's avatar
TCLTC32
Explorer | Level 3
3 years ago

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

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

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

    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.

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!