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
denne
8 years agoExplorer | Level 3
General URL for many files from 1 shared folder
Hello community, In my dropbox I have a folder with 200 country flags which I would like to download automatically using the respective URLs. My problem is that the URL of every single file contain...
- 8 years agoDropbox API v2 now supports listing the contents of a shared link for a folder. This can be accomplished using the same interface as listing a folder in a connected user's account, via the list_folder functionality. To list the contents of a shared link for a folder, you instead provide the shared link URL in the `shared_link` parameter to list_folder:
https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder
You can also get the shared link metadata and file data using:
https://www.dropbox.com/developers/documentation/http/documentation#sharing-get_shared_link_metadata
https://www.dropbox.com/developers/documentation/http/documentation#sharing-get_shared_link_file
If you're using an official SDK, there will also be corresponding methods for these endpoints.
So, you could use a shared link for a folder and then programmatically list and access the contents.
Mark
Super User II
Is this for an app you are developing Denne?
If so I'll move this to the API area where the API team may be able to help
If so I'll move this to the API area where the API team may be able to help
denne
8 years agoExplorer | Level 3
Hi Mark,
yes, it is for an app I'm playing with.
My idea was: to show country flags which I hold in my dropbox, but every single flag-file has not only a file name (like gb.png) but also a dropbox key (/s/xxxxxxxxxxx) for that file which makes the whole URL unique and thus impossible to generalize the call of the URL.
Thank you,
Denne
- Greg-DB8 years agoDropbox StaffHi Denne, Sanchez is correct, there isn't a way to get a general shared link like this, but I'll pass this along as a feature request.
- Greg-DB8 years agoDropbox StaffDropbox API v2 now supports listing the contents of a shared link for a folder. This can be accomplished using the same interface as listing a folder in a connected user's account, via the list_folder functionality. To list the contents of a shared link for a folder, you instead provide the shared link URL in the `shared_link` parameter to list_folder:
https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder
You can also get the shared link metadata and file data using:
https://www.dropbox.com/developers/documentation/http/documentation#sharing-get_shared_link_metadata
https://www.dropbox.com/developers/documentation/http/documentation#sharing-get_shared_link_file
If you're using an official SDK, there will also be corresponding methods for these endpoints.
So, you could use a shared link for a folder and then programmatically list and access the contents.- denne8 years agoExplorer | Level 3
Thank you Greg! I'll give it a try
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,919 PostsLatest Activity: 22 hours ago
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!