cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Find out how Tiffany, a Customer Experience superstar uses Dropbox to keep her family in the loop when it comes to her new baby 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

Re: Access public folder with Dropbox API using C#

Greg-DB
Dropboxer
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropboxer
What do Dropbox user levels mean?
Need more support?