package spotify-web-api

  1. Overview
  2. Docs
type 'a paging = 'a Paging_t.paging
type image = Image_t.image
type followers = Followers_t.followers
type external_urls = External_urls_t.external_urls
type artist = Artist_t.artist = {
  1. external_urls : external_urls;
  2. followers : followers;
  3. genres : string list;
  4. href : string;
  5. id : string;
  6. images : image list;
  7. name : string;
  8. popularity : int;
  9. uri : string;
}
type search_wrapper = Artist_t.search_wrapper = {
  1. artists : artist paging;
}
type artist_simplified = Artist_t.artist_simplified = {
  1. external_urls : external_urls;
  2. href : string;
  3. id : string;
  4. name : string;
  5. uri : string;
}
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_image : Bi_outbuf.t -> image -> unit

Output a JSON value of type image.

val 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.

Input JSON data of type image.

val image_of_string : string -> image

Deserialize JSON data of type image.

val write_followers : Bi_outbuf.t -> followers -> unit

Output a JSON value of type followers.

val string_of_followers : ?len:int -> followers -> string

Serialize a value of type followers into a JSON string.

  • parameter len

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

Input JSON data of type followers.

val followers_of_string : string -> followers

Deserialize JSON data of type followers.

val write_external_urls : Bi_outbuf.t -> external_urls -> unit

Output a JSON value of type external_urls.

val string_of_external_urls : ?len:int -> external_urls -> string

Serialize a value of type external_urls into a JSON string.

  • parameter len

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

val read_external_urls : Yojson.Safe.lexer_state -> Lexing.lexbuf -> external_urls

Input JSON data of type external_urls.

val external_urls_of_string : string -> external_urls

Deserialize JSON data of type external_urls.

val write_artist : Bi_outbuf.t -> artist -> unit

Output a JSON value of type artist.

val string_of_artist : ?len:int -> artist -> string

Serialize a value of type artist into a JSON string.

  • parameter len

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

Input JSON data of type artist.

val artist_of_string : string -> artist

Deserialize JSON data of type artist.

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.

val write_artist_simplified : Bi_outbuf.t -> artist_simplified -> unit

Output a JSON value of type artist_simplified.

val string_of_artist_simplified : ?len:int -> artist_simplified -> string

Serialize a value of type artist_simplified into a JSON string.

  • parameter len

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

val read_artist_simplified : Yojson.Safe.lexer_state -> Lexing.lexbuf -> artist_simplified

Input JSON data of type artist_simplified.

val artist_simplified_of_string : string -> artist_simplified

Deserialize JSON data of type artist_simplified.