package spotify-web-api

  1. Overview
  2. Docs
type 'a paging = 'a Paging_t.paging
type album_simplified = Album_t.album_simplified = {
  1. album_type : string;
  2. available_markets : string list;
  3. href : string;
  4. id : string;
  5. name : string;
  6. uri : string;
}
type search_wrapper = Album_t.search_wrapper = {
  1. albums : album_simplified paging;
}
val write_paging : (Bi_outbuf.t -> 'a -> unit) -> Bi_outbuf.t -> 'a paging -> unit

Output a JSON value of type paging.

val string_of_paging : (Bi_outbuf.t -> 'a -> unit) -> ?len:int -> 'a paging -> string

Serialize a value of type paging into a JSON string.

  • parameter len

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

Input JSON data of type paging.

val paging_of_string : (Yojson.Safe.lexer_state -> Lexing.lexbuf -> 'a) -> string -> 'a paging

Deserialize JSON data of type paging.

val write_album_simplified : Bi_outbuf.t -> album_simplified -> unit

Output a JSON value of type album_simplified.

val string_of_album_simplified : ?len:int -> album_simplified -> string

Serialize a value of type album_simplified into a JSON string.

  • parameter len

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

val read_album_simplified : Yojson.Safe.lexer_state -> Lexing.lexbuf -> album_simplified

Input JSON data of type album_simplified.

val album_simplified_of_string : string -> album_simplified

Deserialize JSON data of type album_simplified.

val write_search_wrapper : Bi_outbuf.t -> search_wrapper -> unit

Output a JSON value of type search_wrapper.

val string_of_search_wrapper : ?len:int -> search_wrapper -> string

Serialize a value of type search_wrapper into a JSON string.

  • parameter len

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

val read_search_wrapper : Yojson.Safe.lexer_state -> Lexing.lexbuf -> search_wrapper

Input JSON data of type search_wrapper.

val search_wrapper_of_string : string -> search_wrapper

Deserialize JSON data of type search_wrapper.

OCaml

Innovation. Community. Security.