In SugarSync...I am using the Below code to download the PDF file. After saving When I open the PDF file...It says file is corrupted
String Url = "https://api.sugarsync.com/file/:sc:1188464:46431595_224319/version/46431595_150662/data";
WebClient c = new WebClient();
c.Headers["Authorization"] = accessToken;
c.DownloadFile(Url, @"d:\abc.pdf");