We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
pankaj_agarwal
7 years agoExplorer | Level 3
Access public folder with Dropbox API using C#
Hi,
I am working on a project that will access files in a publicly shared folder the url of which looks like this:-
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
Replies have been turned off for this discussion
- Greg-DB7 years ago
Dropbox Community Moderator
I'm closing this thread as a duplicate of: https://www.dropboxforum.com/t5/Discuss-Developer-API/How-to-use-the-public-url-to-access-files/m-p/328617
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!