package dropbox

  1. Overview
  2. Docs

Binding to the Dropbox Remote API.

type error_description = {
  1. error : string;
  2. error_description : string;
}
type error =
  1. | Invalid_arg of error_description
    (*

    Bad input parameter. The string should indicate why.

    *)
  2. | Invalid_token of error_description
    (*

    Bad or expired token. This can happen if the user or Dropbox revoked or expired an access token. To fix, you should re-authenticate the user.

    *)
  3. | Invalid_oauth of error_description
    (*

    Bad OAuth request (wrong consumer key, bad nonce, expired timestamp...). Unfortunately, re-authenticating the user won't help here.

    *)
  4. | Conflict of error_description
    (*

    A conflict occured when uploading a file. See S.files_put.

    *)
  5. | Too_many_requests of error_description
    (*

    Your app is making too many requests and is being rate limited. Too_many_requests can trigger on a per-app or per-user basis.

    *)
  6. | Try_later of int option * error_description
    (*

    Try_later(sec, e) If sec = Some s, this means your app is being rate limited and you must retry after s seconds. Otherwise, this indicates a transient server error, and your app should retry its request.

    *)
  7. | Quota_exceeded of error_description
    (*

    User is over Dropbox storage quota.

    *)
  8. | Server_error of int * error_description
    (*

    Server error 5xx

    *)
  9. | Not_modified of error_description
    (*

    The folder contents have not changed (relies on hash parameter).

    *)
  10. | Unsupported_media_type of error_description
    (*

    The image is invalid and cannot be converted to a thumbnail.

    *)
val string_of_error : error -> string
exception Error of error
module Date : sig ... end

Date representation.

module type S = sig ... end

Dropbox API.

Create a concrete Dropbox API implementation given a client one. Note that several instances have been instantiated for you in the Dropbox_* modules so you generally do not have to call this yourself.

OCaml

Innovation. Community. Security.