I am writing a C# application that downloads from a shared Dropbox folder using Dropbox API. I am able to access my own account and folders and files. But when I try to access the given link which looks like this:
I get an exception that the path could not be found, but the path exists as I have used the link in the browser to download the files. So, I suspect that it has something to do with the link itself that I keep getting this error. I have used the following code to read the folder:
private async static Task RunOnPublicUrlAsync(string url)
{
using (var dbx = new DropboxClient("My Access code Here"))
{
var metadata = await dbx.Sharing.GetSharedLinkMetadataAsync(url);
Console.WriteLine($"{metadata.IsFolder}, {metadata.Name}");
}
}
I pass the above url to the method above but I get shared_link_not_found/...
Any help is greatly appreciated. Thanks in advance.