AppleMusicAPI.Playlist (apple_music_api v0.3.0)

Copy Markdown View Source

Playlist struct representing a playlist in Apple Music.

Fields

  • id: Apple Music playlist ID
  • type: Resource type (always "playlists")
  • href: API URL for this resource
  • name: Playlist name
  • curator_name: Name of the curator
  • description: Playlist description
  • track_count: Number of tracks
  • artwork_url: URL to playlist artwork
  • url: Apple Music URL for the playlist
  • is_chart: Whether this is a chart playlist
  • genre_names: List of genres
  • last_modified_date: Last modification date

Summary

Functions

Decode a playlist resource from the Apple Music API response.

Types

t()

@type t() :: %AppleMusicAPI.Playlist{
  artwork_url: String.t() | nil,
  curator_name: String.t() | nil,
  description: String.t() | nil,
  genre_names: [String.t()] | nil,
  href: String.t() | nil,
  id: String.t() | nil,
  is_chart: boolean() | nil,
  last_modified_date: String.t() | nil,
  name: String.t() | nil,
  track_count: integer() | nil,
  type: String.t() | nil,
  url: String.t() | nil
}

Functions

from_map(data)

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

Decode a playlist resource from the Apple Music API response.