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.