package calculon-web

  1. Overview
  2. Docs

Module Calculon_web.Giphy_jSource

Sourcetype image = Giphy_t.image = {
  1. i_url : string;
}
Sourcetype images = Giphy_t.images = {
  1. images_original : image option;
  2. images_downsized : image option;
}
Sourcetype search_entry = Giphy_t.search_entry = {
  1. type_ : string;
  2. url : string;
  3. embed_url : string;
  4. images : images;
}
Sourcetype json = Yojson.Safe.t
Sourcetype search_result = Giphy_t.search_result = {
  1. data : search_entry list;
  2. meta : json;
  3. pagination : json;
}
Sourceval write_image : Buffer.t -> image -> unit

Output a JSON value of type image.

Sourceval string_of_image : ?len:int -> image -> string

Serialize a value of type image into a JSON string.

  • parameter len

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

Sourceval read_image : Yojson.Safe.lexer_state -> Lexing.lexbuf -> image

Input JSON data of type image.

Sourceval image_of_string : string -> image

Deserialize JSON data of type image.

Sourceval write_images : Buffer.t -> images -> unit

Output a JSON value of type images.

Sourceval string_of_images : ?len:int -> images -> string

Serialize a value of type images into a JSON string.

  • parameter len

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

Sourceval read_images : Yojson.Safe.lexer_state -> Lexing.lexbuf -> images

Input JSON data of type images.

Sourceval images_of_string : string -> images

Deserialize JSON data of type images.

Sourceval write_search_entry : Buffer.t -> search_entry -> unit

Output a JSON value of type search_entry.

Sourceval string_of_search_entry : ?len:int -> search_entry -> string

Serialize a value of type search_entry into a JSON string.

  • parameter len

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

Sourceval read_search_entry : Yojson.Safe.lexer_state -> Lexing.lexbuf -> search_entry

Input JSON data of type search_entry.

Sourceval search_entry_of_string : string -> search_entry

Deserialize JSON data of type search_entry.

Sourceval write_json : Buffer.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_search_result : Buffer.t -> search_result -> unit

Output a JSON value of type search_result.

Sourceval string_of_search_result : ?len:int -> search_result -> string

Serialize a value of type search_result into a JSON string.

  • parameter len

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

Sourceval read_search_result : Yojson.Safe.lexer_state -> Lexing.lexbuf -> search_result

Input JSON data of type search_result.

Sourceval search_result_of_string : string -> search_result

Deserialize JSON data of type search_result.