I'm building an application to automatically trigger a download of a Dropbox file shared with a user (shared file/folder link). This was straight forward to implement for Dropbox links to files, as is outlined here.
Unfortunately this doesn't work for shared folders. Anyone have suggestions on how I could
Currently I can go to the url and do some screen-scraping to try and get the contents list, but the advantage of the solution described in the linked Dropbox blog entry for files is that no scraping is needed, so it's much more reliable and efficient.
Dropbox's support team just filled me in on the best way to do this:
Just add ?dl=1
to the end of the shared link. That'll give you a zipped version of the shared folder.
So if the link shared with a user is https://www.dropbox.com/sh/xyz/xyz-YZ
(or similar, which links to a shared folder), to download a zipped version of that folder just access https://www.dropbox.com/sh/xyz/xyz-YZ?dl=1
Hope this helps someone else also.