cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Share your feedback on the Document Scanning Experience in the Dropbox App right here.

Discuss Dropbox Developer & API

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

How to use the public url to access files

How to use the public url to access files

pankaj_agarwal
Explorer | Level 3

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_0u...

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 11

pankaj_agarwal
Explorer | Level 3

That's right. Its the links in the html file that I want but I am not sure how because I can't find any. That is all I want to know I can do the rest.

Greg-DB
Dropbox Staff

I see, thanks for clarifying. It sounds like you're referring to parsing or scraping the HTML page itself, which is outside the scope of Dropbox API support, so I'm afraid I can't offer help with that. 

You may be better served by referring to general resources on this sort of parsing/scraping on general web development forums. 

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
  • User avatar
    pankaj_agarwal Explorer | Level 3
What do Dropbox user levels mean?