Forum Discussion

rustyx2's avatar
rustyx2
Helpful | Level 5
10 years ago

How to list a shared directory via Dropbox API?

I am writing an app that needs to download all the files from a directory shared via a link.

But when a link is a folder, /2/sharing/get_shared_link_file returns:

HTTP/409 shared_link_is_directory/..



So then I invoke /2/sharing/get_shared_link_metadata, I get:

{
  ".tag": "folder",
  . . .
}



There is just an indication of a folder, but no way to see the contents of it.

However, when I access the same URL via a browser, I do see the contents and I am able to download the files without "mounting" the shared folder into my Dropbox.

So it appears to be possible via a Browser, but not via the API.

Is there a list_shared_folder API or something like it?

 

11 Replies

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from 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!