Dropbox Class

Main communication class between this library and Dropbox’s API.

Constructors

Name Description
Dropbox(string) Creates a new instance of the Dropbox class.

Properties

Name Type Description
AccessToken System.String OAuth 2 access token to be used with Dropbox’s API.
CancellationPending System.Boolean Whether a cancellation has been called and the current asynchronous operation is pending cancellation or not.
IsBusy System.Boolean Whether an asynchronous operation is in progress or not.

Methods

Name Description
Dropbox.Cancel() Cancel the current cancellable asynchronous operation.
Dropbox.SendBasicRequest(string, byte[]) Send a basic request to Dropbox’s API, with no authentication. Used mostly for getting an OAuth token.
Dropbox.SendRequest(string) Send an API request to Dropbox.
Dropbox.SendRequest(string, int) Send an API request to Dropbox.
Dropbox.SendRequest(string, byte[]) Send an API request to Dropbox.
Dropbox.SendRequest(string, byte[], int) Send an API request to Dropbox.
Dropbox.SendRequest(string, byte[], int, bool) Send an API request to Dropbox.
Dropbox.SendDownloadRequest(string, string, string) Send a download request to Dropbox’s API.
Dropbox.SendChunkUploadRequest(Stream, RequestArgs) Send an upload request to Dropbox’s API.
Dropbox.GetResponse(string) Convert Dropbox’s JSON response to an object.
Dropbox.FilterDropboxError(WebException) If the server responds, throw an error with the server’s error message. If not, throw the exception.