package spotify-web-api

  1. Overview
  2. Docs
type artist_simplified = Artist_t.artist_simplified
type track_simplified = Track_t.track_simplified = {
  1. artists : artist_simplified list;
  2. available_markets : string list;
  3. disc_number : int;
  4. duration_ms : int;
  5. explicit : bool;
  6. href : string;
  7. id : string;
  8. name : string;
  9. preview_url : string;
  10. track_number : int;
  11. uri : string;
}
type external_urls = External_urls_t.external_urls
type external_ids = External_ids_t.external_ids
type album_simplified = Album_t.album_simplified
type track = Track_t.track = {
  1. album : album_simplified;
  2. artists : artist_simplified list;
  3. available_markets : string list;
  4. disc_number : int;
  5. duration_ms : int;
  6. explicit : bool;
  7. external_ids : external_ids;
  8. external_urls : external_urls;
  9. href : string;
  10. id : string;
  11. name : string;
  12. popularity : int;
  13. preview_url : string;
  14. track_number : int;
  15. uri : string;
}
type 'a paging = 'a Paging_t.paging
type search_wrapper = Track_t.search_wrapper = {
  1. tracks : track paging;
}
val write_artist_simplified : Buffer.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.

val write_track_simplified : Buffer.t -> track_simplified -> unit

Output a JSON value of type track_simplified.

val string_of_track_simplified : ?len:int -> track_simplified -> string

Serialize a value of type track_simplified into a JSON string.

  • parameter len

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

val read_track_simplified : Yojson.Safe.lexer_state -> Lexing.lexbuf -> track_simplified

Input JSON data of type track_simplified.

val track_simplified_of_string : string -> track_simplified

Deserialize JSON data of type track_simplified.

val write_external_urls : Buffer.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_external_ids : Buffer.t -> external_ids -> unit

Output a JSON value of type external_ids.

val string_of_external_ids : ?len:int -> external_ids -> string

Serialize a value of type external_ids into a JSON string.

  • parameter len

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

val read_external_ids : Yojson.Safe.lexer_state -> Lexing.lexbuf -> external_ids

Input JSON data of type external_ids.

val external_ids_of_string : string -> external_ids

Deserialize JSON data of type external_ids.

val write_album_simplified : Buffer.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_track : Buffer.t -> track -> unit

Output a JSON value of type track.

val string_of_track : ?len:int -> track -> string

Serialize a value of type track into a JSON string.

  • parameter len

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

Input JSON data of type track.

val track_of_string : string -> track

Deserialize JSON data of type track.

val write_paging : (Buffer.t -> 'a -> unit) -> Buffer.t -> 'a paging -> unit

Output a JSON value of type paging.

val string_of_paging : (Buffer.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_search_wrapper : Buffer.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.