We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
Ch_P
7 years agoExplorer | Level 3
C# api freeze on any api method.
Hey! My program gets stucked on any dbx.Files method, for example:
var x = await dbx.Files.DownloadAsync(folder + "/" + file);
File is very small, 5 bytes, but it gets stuck anyways. On uploa...
Ch_p1
7 years agoExplorer | Level 3
Hi Greg!
I returned with piece of code. Can u please point out what is wrong. My application stuck on awaiting download.
class Program
{
static void Main(string[] args)
{
NotMain();
}
static async void NotMain()
{
var dbx = new Dropbox.Api.DropboxClient("mysecrettoken");
var x = await dbx.Files.DownloadAsync("/Folder/File"); // Exits here with code 0.
System.Diagnostics.Debug.Write(await x.GetContentAsStringAsync()); // Never outputs nothing
}
}weerasinghe4
5 years agoNew member | Level 2
Just use this code
var dbx = new DropboxClient(AccessToken);
var response = dbx.Files.GetTemporaryLinkAsync(File).Result;
return response.Link;
About Dropbox API Support & Feedback
Find help with the Dropbox API from 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!