View Source Sptfy.Artist (Sptfy v0.1.5)

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
@spec 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

Parameters

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

get_artist(token, params \\ %{})

View Source
@spec 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

Parameters

  • id: required
Link to this function

get_artists(token, params \\ %{})

View Source
@spec 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

Parameters

  • ids: required
Link to this function

get_top_tracks(token, params \\ %{})

View Source
@spec 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

Parameters

  • id: required
  • market: required