Sptfy.Album (Sptfy v0.1.3) View Source

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

Link to this section Summary

Link to this section Functions

Link to this function

get_album(token, params \\ %{})

View Source

Specs

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

GET /v1/albums/:id

Parameters

  • id: required
  • market
Link to this function

get_album_tracks(token, params \\ %{})

View Source

Specs

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

GET /v1/albums/:id/tracks

Parameters

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

get_albums(token, params \\ %{})

View Source

Specs

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

GET /v1/albums

Parameters

  • ids: required
  • market