Sptfy.Artist (Sptfy v0.1.3) View Source

https://developer.spotify.com/documentation/web-api/reference-beta/#category-artists

Link to this section Summary

Functions

GET /v1/artists/:id/albums

GET /v1/artists/:id

GET /v1/artists/:id/related-artists

GET /v1/artists/:id/top-tracks

Link to this section Functions

Link to this function

get_albums(token, params \\ %{})

View Source

Specs

get_albums(token :: String.t(), params :: map() | Keyword.t()) ::
  {:ok, Sptfy.Object.Paging.t()}
  | {:error, Sptfy.Object.Error.t()}
  | {:error, Mint.Types.error()}

GET /v1/artists/:id/albums

Parameters

  • id: required
  • include_groups
  • market
  • limit
  • offset
Link to this function

get_artist(token, params \\ %{})

View Source

Specs

get_artist(token :: String.t(), params :: map() | Keyword.t()) ::
  {:ok, Sptfy.Object.FullArtist.t()}
  | {:error, Sptfy.Object.Error.t()}
  | {:error, Mint.Types.error()}

GET /v1/artists/:id

Parameters

  • id: required
Link to this function

get_artists(token, params \\ %{})

View Source

Specs

get_artists(token :: String.t(), params :: map() | Keyword.t()) ::
  {:ok, [Sptfy.Object.FullArtist.t()]}
  | {:error, Sptfy.Object.Error.t()}
  | {:error, Mint.Types.error()}

GET /v1/artists

Parameters

  • ids: required
Link to this function

get_top_tracks(token, params \\ %{})

View Source

Specs

get_top_tracks(token :: String.t(), params :: map() | Keyword.t()) ::
  {:ok, [Sptfy.Object.FullTrack.t()]}
  | {:error, Sptfy.Object.Error.t()}
  | {:error, Mint.Types.error()}

GET /v1/artists/:id/top-tracks

Parameters

  • id: required
  • market: required