We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
pankaj_agarwal
7 years agoExplorer | Level 3
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
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
Replies have been turned off for this discussion
- Greg-DB7 years ago
Dropbox Community Moderator
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.
About Discuss Dropbox Developer & API
Make connections with other developers
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, Facebook or Instagram.
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!