Exspotify.Structs.Artist (Exspotify v0.1.0)

View Source

Represents an artist object from Spotify API.

Summary

Functions

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

Types

t()

@type t() :: %Exspotify.Structs.Artist{
  external_urls: Exspotify.Structs.ExternalUrls.t() | nil,
  followers: Exspotify.Structs.Followers.t() | nil,
  genres: [String.t()] | nil,
  href: String.t() | nil,
  id: String.t(),
  images: [Exspotify.Structs.Image.t()] | nil,
  name: String.t(),
  popularity: integer() | nil,
  type: String.t(),
  uri: String.t()
}

Functions

from_map(map)

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

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