You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.

Forum Discussion

axew3's avatar
axew3
Collaborator | Level 8
9 years ago

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.

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox Staff

    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.

    • axew3's avatar
      axew3
      Collaborator | Level 8

      ah yeah! already done and working like a charm.
      Thank you ;)

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

5,882 PostsLatest Activity: 3 years ago
325 Following

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 or Facebook.

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!