package spotify-web-api

  1. Overview
  2. Docs
OCaml bindings to the Spotify web API

Install

Dune Dependency

Authors

Maintainers

Sources

spotify-web-api.0.2.1.tar.gz
sha256=6bcad14644a5b32e0eb007858472d3b56477a9c4aabcc5b1b87be9164b30d45a
md5=5a26d1c5e23df37104e83e40671d027d

doc/spotify-web-api/Album_j/index.html

Module Album_jSource

Sourcetype 'a paging = 'a Paging_t.paging
Sourcetype image = Image_t.image
Sourcetype album_simplified = Album_t.album_simplified = {
  1. album_type : string;
  2. available_markets : string list;
  3. external_urls : external_urls;
  4. href : string;
  5. id : string;
  6. images : image list;
  7. name : string;
  8. uri : string;
}
Sourcetype search_wrapper = Album_t.search_wrapper = {
  1. albums : album_simplified paging;
}
Sourceval write_paging : (Buffer.t -> 'a -> unit) -> Buffer.t -> 'a paging -> unit

Output a JSON value of type paging.

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

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

Deserialize JSON data of type paging.

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.

Input JSON data of type image.

Sourceval image_of_string : string -> image

Deserialize JSON data of type image.

Sourceval write_external_urls : Buffer.t -> external_urls -> unit

Output a JSON value of type external_urls.

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

Input JSON data of type external_urls.

Sourceval external_urls_of_string : string -> external_urls

Deserialize JSON data of type external_urls.

Sourceval write_album_simplified : Buffer.t -> album_simplified -> unit

Output a JSON value of type album_simplified.

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

Input JSON data of type album_simplified.

Sourceval album_simplified_of_string : string -> album_simplified

Deserialize JSON data of type album_simplified.

Sourceval write_search_wrapper : Buffer.t -> search_wrapper -> unit

Output a JSON value of type search_wrapper.

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

Input JSON data of type search_wrapper.

Sourceval search_wrapper_of_string : string -> search_wrapper

Deserialize JSON data of type search_wrapper.

OCaml

Innovation. Community. Security.