AppleMusicAPI.Artist (apple_music_api v0.3.0)

Copy Markdown View Source

Artist struct representing an artist in Apple Music.

Fields

  • id: Apple Music artist ID
  • type: Resource type (always "artists")
  • href: API URL for this resource
  • name: Artist name
  • genre_names: List of genres
  • artwork_url: URL to artist artwork
  • url: Apple Music URL for the artist

Summary

Functions

Decode an artist resource from the Apple Music API response.

Types

t()

@type t() :: %AppleMusicAPI.Artist{
  artwork_url: String.t() | nil,
  genre_names: [String.t()] | nil,
  href: String.t() | nil,
  id: String.t() | nil,
  name: String.t() | nil,
  type: String.t() | nil,
  url: String.t() | nil
}

Functions

from_map(data)

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

Decode an artist resource from the Apple Music API response.