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:Ā 

Re: list_shared_links: how to get data in the best way (?)

list_shared_links: how to get data in the best way (?)

axew3
Collaborator | Level 8
Go to solution

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.

1 Accepted Solution

Accepted Solutions

Greg-DB
Dropbox Staff
Go to solution

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.

View solution in original post

2 Replies 2

Greg-DB
Dropbox Staff
Go to solution

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
Collaborator | Level 8
Go to solution

ah yeah! already done and working like a charm.
Thank you :winking_face:

Need more support?