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 ...
Greg-DB
Dropbox Community Moderator
6 years agoIf you have a shared link for a folder and want to programmatically list its contents using the .NET SDK, you should use the ListFolderAsync/ListFolderContinueAsync methods, and supply the 'path' and 'sharedLink' parameters to ListFolderAsync. The 'path' parameter value should be the empty string if you want to list the contents of the folder root itself, or a relative path like "/subfolder" if you want to list the contents of a subfolder.
To download a file from a shared link, you should use the GetSharedLinkFileAsync method. You can supply just the 'url' parameter if the shared link is for the file itself, or both the 'url' and 'path' parameters if the shared link is for a folder and you want to download a specific file, identified by a particular relative path in 'path'.
- rsd206 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-DB6 years ago
Dropbox Community Moderator
The 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?
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!