Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
axew3
10 years agoCollaborator | Level 8
list_shared_links: how to get data in the best way (?)
Hello all: after an API look into, i've got this about list_shared_links (and i ask if it is right):
if i like to display all shared links of an user, of a specified folder, i can't get only shared files of this folder, i need to get all shared files for the user, so iterate over to extract.
Is this correct? I hope yes since i've the working class ready :), so if there is another convenient way to achieve shared files links for specified folder, instead to recall curl each 200 files (than if an user have in sharing 2000 files, curl will call 10 times to retrieve all files) unify these arrays, and iterate extracting the necessary.
Hum ... maybe i had to do this question before!
Thank you.
That's correct, you should use /2/sharing/list_shared_links and filter the results to just the files in the folder(s) you're interested in. Make sure you check the has_more field in the result to see if you need to call back for more results.
2 Replies
- Greg-DB10 years ago
Dropbox Community Moderator
That's correct, you should use /2/sharing/list_shared_links and filter the results to just the files in the folder(s) you're interested in. Make sure you check the has_more field in the result to see if you need to call back for more results.
- axew310 years agoCollaborator | Level 8
ah yeah! already done and working like a charm.
Thank you ;)
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!