We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
rsd20
6 years agoExplorer | Level 3
API App Authentication Get List of files/folders from public link
Hi i'm looking for some advice on how to do the following and what best route of authentication / api end points I should use,
I need to be able to parse a dropbox business folder (can do this ...
rsd20
6 years agoExplorer | Level 3
Hi Greg
Thank you for the response. I am struggling to find a way of authenticating without user interaction. As this service will need to run nightly and pull data files from drop box.
Greg-DB
Dropbox Community Moderator
6 years agoThe initial authentication/authorization flow does require manual user interaction, but you can store and re-use the resulting access token after that for future use without further manual user interaction.
- rsd206 years agoExplorer | Level 3
If i use the access token generated in the app admin console is this sufficient? What lifespan does it have?
- Greg-DB6 years ago
Dropbox Community Moderator
You can use an access token generated from the app's page on the App Console to connect to your own account.
Note that depending on the app's configuration, the access token may be short-lived (expires after four hours) or long-lived (doesn't expire by itself). If you don't yet have the "Access token expiration" option on that page, your access token will be long-lived. You can also tell from the access token itself. If it starts with "sl.", it is short-lived. You can find more information in the OAuth Guide.
- rsd206 years agoExplorer | Level 3
I understand that the auth code retrieved form manual user interaction can only be used once.
If at this stage I go and get a token anrefresh token. Is it expected to just keep these tokens and keep refreshing as and when I need to. long does the refresh token last?
Is there no way to get a bearer token from just the app key and secret, it seems that the api doesnt cater for background applications?
About Discuss Dropbox Developer & API
Make connections with 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!