cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Tell us what you want to see on the Community here!
Close

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: 

Get shared links of all files in App folder

Highlighted

Get shared links of all files in App folder

New member | Level 2

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.

1 Accepted Solution

Accepted Solutions
Highlighted

Re: Get shared links of all files in App folder

Dropboxer

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.

View solution in original post

1 Reply 1
Highlighted

Re: Get shared links of all files in App folder

Dropboxer

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.

View solution in original post

Work Smarter with Dropbox

The way we work is changing. Share and discover new ways to work smarter with Dropbox in our community.

Sound good? Let's get started.
Who's talking

Top contributors to this post

What do Dropbox user levels mean?
Need more support?