Comments
-
Thanks Gregory . That was the solution . But I'm having issues when downloading a large file with DownloadAsync private async Task<Stream> DowloadFileTask(DropboxClient client, string cloudPath, string localPath) { IDownloadResponse<FileMetadata> downloadedFileResponse = null; Stream downloadedFileStream = null; try {…
-
The type of error is AggregateException. InnerException : {"A task was canceled."} Message : One or more errors occurred. This is happening at call : System.Threading.Tasks.Task taskDownloadFile = Task.Run(() => GetFileTask(cloudPath, localPath)); taskDownloadFile.Wait();
-
Hi Gregory, Thanks for all your answers. I'm trying to get the result of a task using the following: try { ListFolderResult allItems = dbxClient.Files.EndListFolder(dbxClient.Files.ListFolderAsync(string.Empty, true)); } catch(ApiException<ListFolderContinueError> err) { string message = err.Message; } And not getting any…
-
Thanks Steve . It's working dropboxClient.Files.DeleteAsync(path). I was looking at http://dropbox.github.io/dropbox-sdk-dotnet/html/N_Dropbox_Api_Files.htm ,not at http://dropbox.github.io/dropbox-sdk-dotnet/html/T_Dropbox_Api_Files_Routes_FilesRoutes.htm
-
Sorry for not mentioning. It's the one for .NET.
-
The Share Folder button method or Send link method for a file are implemented? Because I want to at least send a notification through email .
-
Thank you again Steve , you are great . So my solution for the first question was something like this: private bool CheckIfCloudPathExists(string cloudPath) { Metadata metadata = new Metadata(); try { System.Threading.Tasks.Task<Metadata> taskUpload = Task.Run(() => GetFolderMetadata(cloudPath)); if (taskUpload.Result !=…
-
Thanks Qiming.
-
Hi Steve, My application didn't have full access to my dropbox account and that's why i didn't find anything. Thanks again for answering in such a short time
-
Yes . I tried this one(my first try). Currently I'm using this method: Uri authorizeUri = DropboxOAuth2Helper.GetAuthorizeUri(OauthResponseType.Token, appKey, RedirectUri, state: oauth2State); And then I called System.Diagnostics.Process.Start(authorizeUri.ToString()) to open the browser with authorizeUri. Next step is…
-
Hi Steve, I tried to do something like this to get the uri ,but in my response I don't get the new uri, which contains the access token . Uri uri = new Uri("https://api.dropboxapi.com/1/oauth2/authorize?response_type=token&client_id=my_client_id"); System.Net.HttpWebRequest request =…
-
Thanks for answering Steve. I just want to use a button connect and then a browser tab to open for log in ( in Internet Explorer for example ) and after the login to store the access token in my app. Is this possible ? Same thing is done by this function of Google Drive :…