Song struct representing a track in Apple Music.
Fields
id: Apple Music song IDtype: Resource type (always "songs")href: API URL for this resourcename: Song nameartist_name: Primary artist namealbum_name: Album nameisrc: International Standard Recording Codeduration_in_millis: Duration in millisecondstrack_number: Track number on the albumdisc_number: Disc number for multi-disc albumsrelease_date: Release date (YYYY-MM-DD format)artwork_url: URL to album artworkurl: Apple Music URL for the songpreviews: List of preview URLs
Summary
Functions
Decode a song resource from the Apple Music API response.
Types
@type t() :: %AppleMusicAPI.Song{ album_name: String.t() | nil, artist_name: String.t() | nil, artwork_url: String.t() | nil, disc_number: integer() | nil, duration_in_millis: integer() | nil, href: String.t() | nil, id: String.t() | nil, isrc: String.t() | nil, name: String.t() | nil, previews: [map()] | nil, release_date: String.t() | nil, track_number: integer() | nil, type: String.t() | nil, url: String.t() | nil }