Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
Hello.
I'm using Dropbox Api for .NET. I would like to list all files together with their shared links. Here's my current code:
var listFolderResult = await _dropboxClient.Files.ListFolderAsync(String.Empty, recursive: true); var files = listFolderResult.Entries.Where(x => x.IsFile).Select(x => x.AsFile); foreach (var file in files) { var listSharedLinksResult = await _dropboxClient.Sharing.ListSharedLinksAsync(file.PathDisplay); }
It works, but I have to make a request for shared link for every file and that is time-consuming. I tested this code on account with 50 files and the whole operation took about 1 minute. Is there any faster way to get all files (I need only names and sizes) with their shared links?
Best regards.
No, unfortunately there isn't a way to retrieve shared links along with the file listing, or a way to get shared links in bulk. I'll pass this along as a feature request. I can't promise if or when that might be implemented though.
No, unfortunately there isn't a way to retrieve shared links along with the file listing, or a way to get shared links in bulk. I'll pass this along as a feature request. I can't promise if or when that might be implemented though.
Hi there!
If you need more help you can view your support options (expected response time for a ticket is 24 hours), or contact us on Twitter or Facebook.
For more info on available support options, see this article.
If you found the answer to your question, please 'like' the post to say thanks to the user!