AppleMusicAPI.Album (apple_music_api v0.3.0)

Copy Markdown View Source

Album struct representing an album in Apple Music.

Fields

  • id: Apple Music album ID
  • type: Resource type (always "albums")
  • href: API URL for this resource
  • name: Album name
  • artist_name: Primary artist name
  • artist_id: Apple Music artist ID
  • track_count: Number of tracks
  • is_single: Whether this is a single
  • is_complete: Whether the album is complete
  • release_date: Release date (YYYY-MM-DD format)
  • record_label: Record label name
  • copyright: Copyright notice
  • artwork_url: URL to album artwork
  • url: Apple Music URL for the album
  • genre_names: List of genres

Summary

Functions

Decode an album resource from the Apple Music API response.

Types

t()

@type t() :: %AppleMusicAPI.Album{
  artist_id: String.t() | nil,
  artist_name: String.t() | nil,
  artwork_url: String.t() | nil,
  copyright: String.t() | nil,
  genre_names: [String.t()] | nil,
  href: String.t() | nil,
  id: String.t() | nil,
  is_complete: boolean() | nil,
  is_single: boolean() | nil,
  name: String.t() | nil,
  record_label: String.t() | nil,
  release_date: 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 an album resource from the Apple Music API response.