cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Want to learn some quick and useful tips to make your day easier? Check out how Calvin uses Replay to get feedback from other teams at Dropbox here.

Discuss Dropbox Developer & API

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Access public folder with Dropbox API using C#

Access public folder with Dropbox API using C#

pankaj_agarwal
Explorer | Level 3

Hi,

I am working on a project that will access files in a publicly shared folder the url of which looks like this:-

https://wixlabs---dropbox-folder.appspot.com/index?instance=UexTyTTXTALjKbz1f1P3H5nZAFTiMsLw2wWcu_0u...

When I use the api I get:- ApiException`1: shared_link_not_found/.

This is the code I am using:-

Snippet

private async static Task RunOnPublicUrlAsync(string url)
		{
			using (var dbx = new DropboxClient("Access Code here"))
			{
				var metadata = await dbx.Sharing.GetSharedLinkMetadataAsync(url);
				Console.WriteLine($"{metadata.IsFolder}{metadata.Name}");
			}
		}

Any help or advice will be greatly appreciated. Thanks in advance. 

1 Reply 1

Greg-DB
Dropbox Staff
Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?