Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
Arron G.
10 years agoNew member | Level 1
Get all files in shared link loder
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 gener...
Greg-DB
Dropbox Community Moderator
8 years agojyotinarang It sounds like you're calling list_folder with a shared link owned by a different user than the one for the access token you're using. In that case, the path values won't be included, but I'll pass this along as a feature request.
That means you'll need to manually build the relative path from the 'name' value. E.g., if the returned metadata entry for the file you want in the root of the folder is "test.txt", you would pass "/test.txt" to get_shared_link_file.
jyotinarang
8 years agoExplorer | Level 4
Thanks Greg for the information. I can see that the function get_shared_link_file() expects a url as parameter. However, this value is not available to me when I get information about the folder. How do I construct a url from just the name?Even with relative paths, I don't see a way to construct the url of the files within the main folder.
Thanks
Jyoti
- Greg-DB8 years ago
Dropbox Community Moderator
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
About 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!