cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Share your feedback on the Document Scanning Experience in the Dropbox App right here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Get all files in shared link loder

Get all files in shared link loder

Arron G.
New member | Level 1

I'm looking to use the v2 api to download the contents of a shared folder from a link like this:

https://www.dropbox.com/sh/[some_junk]/[some_other_junk]?dl=0

this link is not necessarily generated by the user authenticating the API call but would be either a public link, or a team link from a team the authenticated user is a member of, or the user would have the password (so my API app would as well)  In short this is a link the user COULD access with a browser logged into the authenticating account.

I KNOW that you can add ?dl=1 to the URL to generate a zip.  i also know that folders that contain more than 10,000 files or are larger than 1 GB will fail to generate that zip.  This is what i'm trying to deal with.

I want to have my app download all of the files in that folder one by one and put them all into the right folder structure on another server so that humans don't need to waste their time doing exactly that.

so, what specific methods do I need to call to list the contents of folders in a shared link? then when there are subfolders there, how do i list THEIR contents?

Thanks.

10 Replies 10

Greg-DB
Dropbox Staff

@jyotinarang Apologies, this thread was about originally about getting the files when working from a shared link for a folder, so I assumed that's the scenario you're working on as well, in which case the 'url' would just be the original shared link for the folder.

 

If you don't have the link, it sounds like you may be referring to a different scenario. In that case, please open a new thread with the details and code you have so far so we can help with it: https://www.dropboxforum.com/t5/forums/postpage/board-id/101000014

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
  • User avatar
    jyotinarang Explorer | Level 4
What do Dropbox user levels mean?