We Want to Hear From You! What Do You Want to See on the Community? Tell us here!

Forum Discussion

pankaj_agarwal's avatar
pankaj_agarwal
Explorer | Level 3
7 years ago

How to use the public url to access files

I am trying to create an app in c# which will download files from a given url which looks like this

https://wixlabs---dropbox-folder.appspot.com/index?instance=UexTyTTXTALjKbz1f1P3H5nZAFTiMsLw2wWcu_0uebU.eyJpbnN0YW5jZUlkIjoiNzk4YzZlYTUtMDg5Yi00ZjFlLWI2NzMtOWYxZjA1OTU1YmQ5IiwiYXBwRGVmSWQiOiIxNDkyNDg2NC01NmQ1LWI5NGItMDYwZi1jZDU3YmQxNmNjMjYiLCJtZXRhU2l0ZUlkIjoiYmRkMzFlNjMtY2I5Ny00ZTMxLWI5NGEtMGFhNmI5MzgwYjY3Iiwic2lnbkRhdGUiOiIyMDE4LTEwLTA0VDAwOjE4OjIyLjM5MFoiLCJ1aWQiOm51bGwsInZlbmRvclByb2R1Y3RJZCI6bnVsbCwiZGVtb01vZGUiOmZhbHNlfQ&target=_top&width=576&compId=comp-jmtmo1bb&viewMode=viewer-seo

This is the code I am using:

Snippet

using (var dbx = new DropboxClient("My ACCESS TOKEN HERE"))
			{
				var metadata = await dbx.Sharing.GetSharedLinkMetadataAsync(url);
				Console.WriteLine($"{metadata.IsFolder}{metadata.Name}");
			}

And this is the exception I get:

ApiException`1: shared_link_not_found/...

Am I doing something wrong? The above link is a publicly shared link and I was able to download the files in the browser.

Thanks for the help.
 

11 Replies

About Discuss Dropbox Developer & API

Node avatar for Discuss Dropbox Developer & API
Make connections with other developers815 PostsLatest Activity: 22 hours ago
277 Following

The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.

If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.

For more info on available support options for your Dropbox plan, see this article.

If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!