Exspotify.Structs.Audiobook (Exspotify v0.1.0)

View Source

Represents an audiobook object from Spotify API.

Summary

Functions

Creates an Audiobook struct from a map (typically from JSON).

Types

t()

@type t() :: %Exspotify.Structs.Audiobook{
  authors: [Exspotify.Structs.Author.t()] | nil,
  available_markets: [String.t()] | nil,
  chapters: map() | nil,
  copyrights: [map()] | nil,
  description: String.t() | nil,
  edition: String.t() | nil,
  explicit: boolean() | nil,
  external_urls: Exspotify.Structs.ExternalUrls.t() | nil,
  href: String.t() | nil,
  html_description: String.t() | nil,
  id: String.t(),
  images: [Exspotify.Structs.Image.t()] | nil,
  languages: [String.t()] | nil,
  media_type: String.t() | nil,
  name: String.t(),
  narrators: [Exspotify.Structs.Narrator.t()] | nil,
  publisher: String.t() | nil,
  total_chapters: integer() | nil,
  type: String.t(),
  uri: String.t()
}

Functions

from_map(map)

@spec from_map(map()) :: t()

Creates an Audiobook struct from a map (typically from JSON).