package dropbox

  1. Overview
  2. Docs

Module Dropbox_jSource

Sourcetype group = Dropbox_t.group = {
  1. group_name : string;
  2. group_id : string;
  3. num_members : int;
}
Sourcetype json = Yojson.Safe.json
Sourcetype metadata_root = Dropbox_t.metadata_root
Sourcetype photo_info_variant = Dropbox_t.photo_info_variant
Sourcetype user = Dropbox_t.user = {
  1. uid : int;
  2. display_name : string;
  3. same_team : bool;
  4. member_id : string;
}
Sourcetype user_info = Dropbox_t.user_info = {
  1. user : user;
  2. access_type : string;
  3. active : bool;
}
Sourcetype shared_folder = Dropbox_t.shared_folder = {
  1. shared_folder_id : string;
  2. shared_folder_name : string;
  3. path : string;
  4. access_type : string;
  5. owner : user option;
  6. membership : user_info list;
  7. groups : group list;
}
Sourcetype video_info_variant = Dropbox_t.video_info_variant
Sourcetype metadata = Dropbox_t.metadata = {
  1. size : string;
  2. bytes : int;
  3. mime_type : string;
  4. path : string;
  5. is_dir : bool;
  6. is_deleted : bool;
  7. rev : string;
  8. hash : string;
  9. thumb_exists : bool;
  10. photo_info : photo_info_variant;
  11. video_info : video_info_variant;
  12. icon : string;
  13. modified : date option;
  14. client_mtime : date option;
  15. root : metadata_root;
  16. contents : metadata list;
  17. shared_folder : shared_folder option;
  18. read_only : bool;
  19. parent_shared_folder_id : int;
  20. modifier : user option;
}
Sourcetype visibility = Dropbox_t.visibility
Sourcetype token = Dropbox_t.token = {
  1. access_token : string;
}
Sourcetype team = Dropbox_t.team = {
  1. name : string;
  2. team_id : int;
}
Sourcetype shared_folders = Dropbox_t.shared_folders
Sourcetype quota_info = Dropbox_t.quota_info = {
  1. shared : int;
  2. quota : int;
  3. normal : int;
}
Sourcetype name_details = Dropbox_t.name_details = {
  1. familiar_name : string;
  2. given_name : string;
  3. surname : string;
}
Sourcetype metadata_list = Dropbox_t.metadata_list
Sourcetype longpoll_delta = Dropbox_t.longpoll_delta = {
  1. changes : bool;
  2. backoff : int option;
}
Sourcetype latest_cursor = Dropbox_t.latest_cursor = {
  1. latest_cursor : string;
}
Sourcetype info = Dropbox_t.info = {
  1. uid : int;
  2. display_name : string;
  3. email_verified : bool;
  4. name_details : name_details;
  5. country : string;
  6. locale : string;
  7. is_paired : bool;
  8. team : team option;
  9. quota_info : quota_info;
}
Sourcetype error_description = Dropbox_t.error_description = {
  1. error : string;
  2. error_description : string;
}
Sourcetype delta_json = Dropbox_t.delta_json = {
  1. entries : (string * metadata option) list;
  2. reset : bool;
  3. cursor : string;
  4. has_more : bool;
}
Sourcetype copy_ref = Dropbox_t.copy_ref = {
  1. copy_ref : string;
  2. expires : date;
}
Sourcetype chunked_upload = Dropbox_t.chunked_upload = {
  1. id : string;
  2. ofs : int;
  3. expires : date;
}
Sourceval write_date : Bi_outbuf.t -> date -> unit

Output a JSON value of type date.

Sourceval string_of_date : ?len:int -> date -> string

Serialize a value of type date into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Sourceval read_date : Yojson.Safe.lexer_state -> Lexing.lexbuf -> date

Input JSON data of type date.

Sourceval date_of_string : string -> date

Deserialize JSON data of type date.

Sourceval write_group : Bi_outbuf.t -> group -> unit

Output a JSON value of type group.

Sourceval string_of_group : ?len:int -> group -> string

Serialize a value of type group into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Sourceval read_group : Yojson.Safe.lexer_state -> Lexing.lexbuf -> group

Input JSON data of type group.

Sourceval group_of_string : string -> group

Deserialize JSON data of type group.

Sourceval write_json : Bi_outbuf.t -> json -> unit

Output a JSON value of type json.

Sourceval string_of_json : ?len:int -> json -> string

Serialize a value of type json into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Sourceval read_json : Yojson.Safe.lexer_state -> Lexing.lexbuf -> json

Input JSON data of type json.

Sourceval json_of_string : string -> json

Deserialize JSON data of type json.

Sourceval write_metadata_root : Bi_outbuf.t -> metadata_root -> unit

Output a JSON value of type metadata_root.

Sourceval string_of_metadata_root : ?len:int -> metadata_root -> string

Serialize a value of type metadata_root into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Sourceval read_metadata_root : Yojson.Safe.lexer_state -> Lexing.lexbuf -> metadata_root

Input JSON data of type metadata_root.

Sourceval metadata_root_of_string : string -> metadata_root

Deserialize JSON data of type metadata_root.

Sourceval write_photo_info_variant : Bi_outbuf.t -> photo_info_variant -> unit

Output a JSON value of type photo_info_variant.

Sourceval string_of_photo_info_variant : ?len:int -> photo_info_variant -> string

Serialize a value of type photo_info_variant into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Sourceval read_photo_info_variant : Yojson.Safe.lexer_state -> Lexing.lexbuf -> photo_info_variant

Input JSON data of type photo_info_variant.

Sourceval photo_info_variant_of_string : string -> photo_info_variant

Deserialize JSON data of type photo_info_variant.

Sourceval write_user : Bi_outbuf.t -> user -> unit

Output a JSON value of type user.

Sourceval string_of_user : ?len:int -> user -> string

Serialize a value of type user into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Sourceval read_user : Yojson.Safe.lexer_state -> Lexing.lexbuf -> user

Input JSON data of type user.

Sourceval user_of_string : string -> user

Deserialize JSON data of type user.

Sourceval write_user_info : Bi_outbuf.t -> user_info -> unit

Output a JSON value of type user_info.

Sourceval string_of_user_info : ?len:int -> user_info -> string

Serialize a value of type user_info into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Sourceval read_user_info : Yojson.Safe.lexer_state -> Lexing.lexbuf -> user_info

Input JSON data of type user_info.

Sourceval user_info_of_string : string -> user_info

Deserialize JSON data of type user_info.

Sourceval write_shared_folder : Bi_outbuf.t -> shared_folder -> unit

Output a JSON value of type shared_folder.

Sourceval string_of_shared_folder : ?len:int -> shared_folder -> string

Serialize a value of type shared_folder into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Sourceval read_shared_folder : Yojson.Safe.lexer_state -> Lexing.lexbuf -> shared_folder

Input JSON data of type shared_folder.

Sourceval shared_folder_of_string : string -> shared_folder

Deserialize JSON data of type shared_folder.

Sourceval write_video_info_variant : Bi_outbuf.t -> video_info_variant -> unit

Output a JSON value of type video_info_variant.

Sourceval string_of_video_info_variant : ?len:int -> video_info_variant -> string

Serialize a value of type video_info_variant into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Sourceval read_video_info_variant : Yojson.Safe.lexer_state -> Lexing.lexbuf -> video_info_variant

Input JSON data of type video_info_variant.

Sourceval video_info_variant_of_string : string -> video_info_variant

Deserialize JSON data of type video_info_variant.

Sourceval write_metadata : Bi_outbuf.t -> metadata -> unit

Output a JSON value of type metadata.

Sourceval string_of_metadata : ?len:int -> metadata -> string

Serialize a value of type metadata into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Sourceval read_metadata : Yojson.Safe.lexer_state -> Lexing.lexbuf -> metadata

Input JSON data of type metadata.

Sourceval metadata_of_string : string -> metadata

Deserialize JSON data of type metadata.

Sourceval write_visibility : Bi_outbuf.t -> visibility -> unit

Output a JSON value of type visibility.

Sourceval string_of_visibility : ?len:int -> visibility -> string

Serialize a value of type visibility into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Sourceval read_visibility : Yojson.Safe.lexer_state -> Lexing.lexbuf -> visibility

Input JSON data of type visibility.

Sourceval visibility_of_string : string -> visibility

Deserialize JSON data of type visibility.

Sourceval write_uri : Bi_outbuf.t -> uri -> unit

Output a JSON value of type uri.

Sourceval string_of_uri : ?len:int -> uri -> string

Serialize a value of type uri into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Sourceval read_uri : Yojson.Safe.lexer_state -> Lexing.lexbuf -> uri

Input JSON data of type uri.

Sourceval uri_of_string : string -> uri

Deserialize JSON data of type uri.

Sourceval write_token : Bi_outbuf.t -> token -> unit

Output a JSON value of type token.

Sourceval string_of_token : ?len:int -> token -> string

Serialize a value of type token into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Sourceval read_token : Yojson.Safe.lexer_state -> Lexing.lexbuf -> token

Input JSON data of type token.

Sourceval token_of_string : string -> token

Deserialize JSON data of type token.

Sourceval write_team : Bi_outbuf.t -> team -> unit

Output a JSON value of type team.

Sourceval string_of_team : ?len:int -> team -> string

Serialize a value of type team into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Sourceval read_team : Yojson.Safe.lexer_state -> Lexing.lexbuf -> team

Input JSON data of type team.

Sourceval team_of_string : string -> team

Deserialize JSON data of type team.

Output a JSON value of type shared_link.

Serialize a value of type shared_link into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Input JSON data of type shared_link.

Deserialize JSON data of type shared_link.

Sourceval write_shared_folders : Bi_outbuf.t -> shared_folders -> unit

Output a JSON value of type shared_folders.

Sourceval string_of_shared_folders : ?len:int -> shared_folders -> string

Serialize a value of type shared_folders into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Sourceval read_shared_folders : Yojson.Safe.lexer_state -> Lexing.lexbuf -> shared_folders

Input JSON data of type shared_folders.

Sourceval shared_folders_of_string : string -> shared_folders

Deserialize JSON data of type shared_folders.

Sourceval write_quota_info : Bi_outbuf.t -> quota_info -> unit

Output a JSON value of type quota_info.

Sourceval string_of_quota_info : ?len:int -> quota_info -> string

Serialize a value of type quota_info into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Sourceval read_quota_info : Yojson.Safe.lexer_state -> Lexing.lexbuf -> quota_info

Input JSON data of type quota_info.

Sourceval quota_info_of_string : string -> quota_info

Deserialize JSON data of type quota_info.

Sourceval write_name_details : Bi_outbuf.t -> name_details -> unit

Output a JSON value of type name_details.

Sourceval string_of_name_details : ?len:int -> name_details -> string

Serialize a value of type name_details into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Sourceval read_name_details : Yojson.Safe.lexer_state -> Lexing.lexbuf -> name_details

Input JSON data of type name_details.

Sourceval name_details_of_string : string -> name_details

Deserialize JSON data of type name_details.

Sourceval write_metadata_list : Bi_outbuf.t -> metadata_list -> unit

Output a JSON value of type metadata_list.

Sourceval string_of_metadata_list : ?len:int -> metadata_list -> string

Serialize a value of type metadata_list into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Sourceval read_metadata_list : Yojson.Safe.lexer_state -> Lexing.lexbuf -> metadata_list

Input JSON data of type metadata_list.

Sourceval metadata_list_of_string : string -> metadata_list

Deserialize JSON data of type metadata_list.

Sourceval write_longpoll_delta : Bi_outbuf.t -> longpoll_delta -> unit

Output a JSON value of type longpoll_delta.

Sourceval string_of_longpoll_delta : ?len:int -> longpoll_delta -> string

Serialize a value of type longpoll_delta into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Sourceval read_longpoll_delta : Yojson.Safe.lexer_state -> Lexing.lexbuf -> longpoll_delta

Input JSON data of type longpoll_delta.

Sourceval longpoll_delta_of_string : string -> longpoll_delta

Deserialize JSON data of type longpoll_delta.

Output a JSON value of type link.

Serialize a value of type link into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Input JSON data of type link.

Deserialize JSON data of type link.

Sourceval write_latest_cursor : Bi_outbuf.t -> latest_cursor -> unit

Output a JSON value of type latest_cursor.

Sourceval string_of_latest_cursor : ?len:int -> latest_cursor -> string

Serialize a value of type latest_cursor into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Sourceval read_latest_cursor : Yojson.Safe.lexer_state -> Lexing.lexbuf -> latest_cursor

Input JSON data of type latest_cursor.

Sourceval latest_cursor_of_string : string -> latest_cursor

Deserialize JSON data of type latest_cursor.

Sourceval write_info : Bi_outbuf.t -> info -> unit

Output a JSON value of type info.

Sourceval string_of_info : ?len:int -> info -> string

Serialize a value of type info into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Sourceval read_info : Yojson.Safe.lexer_state -> Lexing.lexbuf -> info

Input JSON data of type info.

Sourceval info_of_string : string -> info

Deserialize JSON data of type info.

Sourceval write_error_description : Bi_outbuf.t -> error_description -> unit

Output a JSON value of type error_description.

Sourceval string_of_error_description : ?len:int -> error_description -> string

Serialize a value of type error_description into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Sourceval read_error_description : Yojson.Safe.lexer_state -> Lexing.lexbuf -> error_description

Input JSON data of type error_description.

Sourceval error_description_of_string : string -> error_description

Deserialize JSON data of type error_description.

Sourceval write_delta_json : Bi_outbuf.t -> delta_json -> unit

Output a JSON value of type delta_json.

Sourceval string_of_delta_json : ?len:int -> delta_json -> string

Serialize a value of type delta_json into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Sourceval read_delta_json : Yojson.Safe.lexer_state -> Lexing.lexbuf -> delta_json

Input JSON data of type delta_json.

Sourceval delta_json_of_string : string -> delta_json

Deserialize JSON data of type delta_json.

Sourceval write_copy_ref : Bi_outbuf.t -> copy_ref -> unit

Output a JSON value of type copy_ref.

Sourceval string_of_copy_ref : ?len:int -> copy_ref -> string

Serialize a value of type copy_ref into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Sourceval read_copy_ref : Yojson.Safe.lexer_state -> Lexing.lexbuf -> copy_ref

Input JSON data of type copy_ref.

Sourceval copy_ref_of_string : string -> copy_ref

Deserialize JSON data of type copy_ref.

Sourceval write_chunked_upload : Bi_outbuf.t -> chunked_upload -> unit

Output a JSON value of type chunked_upload.

Sourceval string_of_chunked_upload : ?len:int -> chunked_upload -> string

Serialize a value of type chunked_upload into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

Sourceval read_chunked_upload : Yojson.Safe.lexer_state -> Lexing.lexbuf -> chunked_upload

Input JSON data of type chunked_upload.

Sourceval chunked_upload_of_string : string -> chunked_upload

Deserialize JSON data of type chunked_upload.

OCaml

Innovation. Community. Security.