Interface DropboxRequestSettings

interface DropboxRequestSettings {
    data?: {
        [x: string]: string;
    };
    dropbox-api-args?: {
        [x: string]: string;
    };
    headers?: {
        [x: string]: string;
    };
    method: string;
    parameters?: {
        [x: string]: string;
    };
    url: string;
}

Properties

data?: {
    [x: string]: string;
}

An object containing data to be encoded into the HTTP body of the request.

dropbox-api-args?: {
    [x: string]: string;
}

An object containing the parameters to encode in the dropbox-api-args header, per API documentation. Drafts will take care of properly ASCII escaping values. Required only for contentUploadRequest and contentDownloadRequest functions.

headers?: {
    [x: string]: string;
}

An object contain key-values to be added as custom headers in the request.

method: string

The HTTP method, like "GET", "POST", etc.

parameters?: {
    [x: string]: string;
}

Query parameters to merge with the url. Query parameters can also be part of the original url value.

url: string

The full URL to the RPC endpoint in the Dropbox API. RPC endpoint are typically on the api.dropboxapi.com domain.