Module Dropbox_j
type date= Dropbox_t.datetype group= Dropbox_t.group={group_name : string;group_id : string;num_members : int;}type json= Yojson.Safe.jsontype metadata_root= Dropbox_t.metadata_roottype photo_info_variant= Dropbox_t.photo_info_varianttype user= Dropbox_t.user={uid : int;display_name : string;same_team : bool;member_id : string;}type user_info= Dropbox_t.user_info={user : user;access_type : string;active : bool;}type video_info_variant= Dropbox_t.video_info_varianttype metadata= Dropbox_t.metadata={size : string;bytes : int;mime_type : string;path : string;is_dir : bool;is_deleted : bool;rev : string;hash : string;thumb_exists : bool;photo_info : photo_info_variant;video_info : video_info_variant;icon : string;modified : date option;client_mtime : date option;root : metadata_root;contents : metadata list;shared_folder : shared_folder option;read_only : bool;parent_shared_folder_id : int;modifier : user option;}type visibility= Dropbox_t.visibilitytype uri= Dropbox_t.uritype token= Dropbox_t.token={access_token : string;}type team= Dropbox_t.team={name : string;team_id : int;}type quota_info= Dropbox_t.quota_info={shared : int;quota : int;normal : int;}type name_details= Dropbox_t.name_details={familiar_name : string;given_name : string;surname : string;}type metadata_list= Dropbox_t.metadata_listtype longpoll_delta= Dropbox_t.longpoll_delta={changes : bool;backoff : int option;}type link= Dropbox_t.link={url : string;expires : date;}type latest_cursor= Dropbox_t.latest_cursor={latest_cursor : string;}type info= Dropbox_t.info={uid : int;display_name : string;email_verified : bool;name_details : name_details;referral_link : uri;country : string;locale : string;is_paired : bool;team : team option;quota_info : quota_info;}type error_description= Dropbox_t.error_description={error : string;error_description : string;}type delta_json= Dropbox_t.delta_json={entries : (string * metadata option) list;reset : bool;cursor : string;has_more : bool;}type copy_ref= Dropbox_t.copy_ref={copy_ref : string;expires : date;}type chunked_upload= Dropbox_t.chunked_upload={id : string;ofs : int;expires : date;}
val string_of_date : ?len:int -> date -> stringSerialize a value of type
dateinto a JSON string.- parameter len
specifies the initial length of the buffer used internally. Default: 1024.
val read_date : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> dateInput JSON data of type
date.
val string_of_group : ?len:int -> group -> stringSerialize a value of type
groupinto a JSON string.- parameter len
specifies the initial length of the buffer used internally. Default: 1024.
val read_group : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> groupInput JSON data of type
group.
val string_of_json : ?len:int -> json -> stringSerialize a value of type
jsoninto a JSON string.- parameter len
specifies the initial length of the buffer used internally. Default: 1024.
val read_json : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> jsonInput JSON data of type
json.
val write_metadata_root : Bi_outbuf.t -> metadata_root -> unitOutput a JSON value of type
metadata_root.
val string_of_metadata_root : ?len:int -> metadata_root -> stringSerialize a value of type
metadata_rootinto a JSON string.- parameter len
specifies the initial length of the buffer used internally. Default: 1024.
val read_metadata_root : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> metadata_rootInput JSON data of type
metadata_root.
val metadata_root_of_string : string -> metadata_rootDeserialize JSON data of type
metadata_root.
val write_photo_info_variant : Bi_outbuf.t -> photo_info_variant -> unitOutput a JSON value of type
photo_info_variant.
val string_of_photo_info_variant : ?len:int -> photo_info_variant -> stringSerialize a value of type
photo_info_variantinto a JSON string.- parameter len
specifies the initial length of the buffer used internally. Default: 1024.
val read_photo_info_variant : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> photo_info_variantInput JSON data of type
photo_info_variant.
val photo_info_variant_of_string : string -> photo_info_variantDeserialize JSON data of type
photo_info_variant.
val string_of_user : ?len:int -> user -> stringSerialize a value of type
userinto a JSON string.- parameter len
specifies the initial length of the buffer used internally. Default: 1024.
val read_user : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> userInput JSON data of type
user.
val string_of_user_info : ?len:int -> user_info -> stringSerialize a value of type
user_infointo a JSON string.- parameter len
specifies the initial length of the buffer used internally. Default: 1024.
val read_user_info : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> user_infoInput JSON data of type
user_info.
Output a JSON value of type
shared_folder.
Serialize a value of type
shared_folderinto a JSON string.- parameter len
specifies the initial length of the buffer used internally. Default: 1024.
Input JSON data of type
shared_folder.
Deserialize JSON data of type
shared_folder.
val write_video_info_variant : Bi_outbuf.t -> video_info_variant -> unitOutput a JSON value of type
video_info_variant.
val string_of_video_info_variant : ?len:int -> video_info_variant -> stringSerialize a value of type
video_info_variantinto a JSON string.- parameter len
specifies the initial length of the buffer used internally. Default: 1024.
val read_video_info_variant : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> video_info_variantInput JSON data of type
video_info_variant.
val video_info_variant_of_string : string -> video_info_variantDeserialize JSON data of type
video_info_variant.
val string_of_metadata : ?len:int -> metadata -> stringSerialize a value of type
metadatainto a JSON string.- parameter len
specifies the initial length of the buffer used internally. Default: 1024.
val read_metadata : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> metadataInput JSON data of type
metadata.
val write_visibility : Bi_outbuf.t -> visibility -> unitOutput a JSON value of type
visibility.
val string_of_visibility : ?len:int -> visibility -> stringSerialize a value of type
visibilityinto a JSON string.- parameter len
specifies the initial length of the buffer used internally. Default: 1024.
val read_visibility : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> visibilityInput JSON data of type
visibility.
val visibility_of_string : string -> visibilityDeserialize JSON data of type
visibility.
val string_of_uri : ?len:int -> uri -> stringSerialize a value of type
uriinto a JSON string.- parameter len
specifies the initial length of the buffer used internally. Default: 1024.
val string_of_token : ?len:int -> token -> stringSerialize a value of type
tokeninto a JSON string.- parameter len
specifies the initial length of the buffer used internally. Default: 1024.
val read_token : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> tokenInput JSON data of type
token.
val string_of_team : ?len:int -> team -> stringSerialize a value of type
teaminto a JSON string.- parameter len
specifies the initial length of the buffer used internally. Default: 1024.
val read_team : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> teamInput JSON data of type
team.
Output a JSON value of type
shared_link.
Serialize a value of type
shared_linkinto 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.
Output a JSON value of type
shared_folders.
Serialize a value of type
shared_foldersinto a JSON string.- parameter len
specifies the initial length of the buffer used internally. Default: 1024.
Input JSON data of type
shared_folders.
Deserialize JSON data of type
shared_folders.
val write_quota_info : Bi_outbuf.t -> quota_info -> unitOutput a JSON value of type
quota_info.
val string_of_quota_info : ?len:int -> quota_info -> stringSerialize a value of type
quota_infointo a JSON string.- parameter len
specifies the initial length of the buffer used internally. Default: 1024.
val read_quota_info : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> quota_infoInput JSON data of type
quota_info.
val quota_info_of_string : string -> quota_infoDeserialize JSON data of type
quota_info.
val write_name_details : Bi_outbuf.t -> name_details -> unitOutput a JSON value of type
name_details.
val string_of_name_details : ?len:int -> name_details -> stringSerialize a value of type
name_detailsinto a JSON string.- parameter len
specifies the initial length of the buffer used internally. Default: 1024.
val read_name_details : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> name_detailsInput JSON data of type
name_details.
val name_details_of_string : string -> name_detailsDeserialize JSON data of type
name_details.
val write_metadata_list : Bi_outbuf.t -> metadata_list -> unitOutput a JSON value of type
metadata_list.
val string_of_metadata_list : ?len:int -> metadata_list -> stringSerialize a value of type
metadata_listinto a JSON string.- parameter len
specifies the initial length of the buffer used internally. Default: 1024.
val read_metadata_list : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> metadata_listInput JSON data of type
metadata_list.
val metadata_list_of_string : string -> metadata_listDeserialize JSON data of type
metadata_list.
val write_longpoll_delta : Bi_outbuf.t -> longpoll_delta -> unitOutput a JSON value of type
longpoll_delta.
val string_of_longpoll_delta : ?len:int -> longpoll_delta -> stringSerialize a value of type
longpoll_deltainto a JSON string.- parameter len
specifies the initial length of the buffer used internally. Default: 1024.
val read_longpoll_delta : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> longpoll_deltaInput JSON data of type
longpoll_delta.
val longpoll_delta_of_string : string -> longpoll_deltaDeserialize JSON data of type
longpoll_delta.
val string_of_link : ?len:int -> link -> stringSerialize a value of type
linkinto a JSON string.- parameter len
specifies the initial length of the buffer used internally. Default: 1024.
val read_link : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> linkInput JSON data of type
link.
val write_latest_cursor : Bi_outbuf.t -> latest_cursor -> unitOutput a JSON value of type
latest_cursor.
val string_of_latest_cursor : ?len:int -> latest_cursor -> stringSerialize a value of type
latest_cursorinto a JSON string.- parameter len
specifies the initial length of the buffer used internally. Default: 1024.
val read_latest_cursor : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> latest_cursorInput JSON data of type
latest_cursor.
val latest_cursor_of_string : string -> latest_cursorDeserialize JSON data of type
latest_cursor.
val string_of_info : ?len:int -> info -> stringSerialize a value of type
infointo a JSON string.- parameter len
specifies the initial length of the buffer used internally. Default: 1024.
val read_info : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> infoInput JSON data of type
info.
val write_error_description : Bi_outbuf.t -> error_description -> unitOutput a JSON value of type
error_description.
val string_of_error_description : ?len:int -> error_description -> stringSerialize a value of type
error_descriptioninto a JSON string.- parameter len
specifies the initial length of the buffer used internally. Default: 1024.
val read_error_description : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> error_descriptionInput JSON data of type
error_description.
val error_description_of_string : string -> error_descriptionDeserialize JSON data of type
error_description.
val write_delta_json : Bi_outbuf.t -> delta_json -> unitOutput a JSON value of type
delta_json.
val string_of_delta_json : ?len:int -> delta_json -> stringSerialize a value of type
delta_jsoninto a JSON string.- parameter len
specifies the initial length of the buffer used internally. Default: 1024.
val read_delta_json : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> delta_jsonInput JSON data of type
delta_json.
val delta_json_of_string : string -> delta_jsonDeserialize JSON data of type
delta_json.
val string_of_copy_ref : ?len:int -> copy_ref -> stringSerialize a value of type
copy_refinto a JSON string.- parameter len
specifies the initial length of the buffer used internally. Default: 1024.
val read_copy_ref : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> copy_refInput JSON data of type
copy_ref.
val write_chunked_upload : Bi_outbuf.t -> chunked_upload -> unitOutput a JSON value of type
chunked_upload.
val string_of_chunked_upload : ?len:int -> chunked_upload -> stringSerialize a value of type
chunked_uploadinto a JSON string.- parameter len
specifies the initial length of the buffer used internally. Default: 1024.
val read_chunked_upload : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> chunked_uploadInput JSON data of type
chunked_upload.
val chunked_upload_of_string : string -> chunked_uploadDeserialize JSON data of type
chunked_upload.