Sptfy.Library (Sptfy v0.1.3) View Source

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

Link to this section Summary

Link to this section Functions

Link to this function

check_albums_saved_state(token, params \\ %{})

View Source

Specs

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

GET /v1/me/albums/contains

Parameters

  • ids: required
Link to this function

check_shows_saved_state(token, params \\ %{})

View Source

Specs

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

GET /v1/me/shows/contains

Parameters

  • ids: required
Link to this function

check_tracks_saved_state(token, params \\ %{})

View Source

Specs

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

GET /v1/me/tracks/contains

Parameters

  • ids: required
Link to this function

get_saved_albums(token, params \\ %{})

View Source

Specs

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

GET /v1/me/albums

Parameters

  • limit
  • offset
  • market
Link to this function

get_saved_shows(token, params \\ %{})

View Source

Specs

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

GET /v1/me/shows

Parameters

  • limit
  • offset
Link to this function

get_saved_tracks(token, params \\ %{})

View Source

Specs

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

GET /v1/me/tracks

Parameters

  • limit
  • offset
  • market
Link to this function

remove_from_saved_albums(token, params \\ %{})

View Source

Specs

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

DELETE /v1/me/albums

Parameters

  • ids: required
Link to this function

remove_from_saved_shows(token, params \\ %{})

View Source

Specs

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

DELETE /v1/me/shows

Parameters

  • ids: required
Link to this function

remove_from_saved_tracks(token, params \\ %{})

View Source

Specs

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

DELETE /v1/me/tracks

Parameters

  • ids: required
Link to this function

save_albums(token, params \\ %{})

View Source

Specs

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

PUT /v1/me/albums

Parameters

  • ids: required
Link to this function

save_shows(token, params \\ %{})

View Source

Specs

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

PUT /v1/me/shows

Parameters

  • ids: required
Link to this function

save_tracks(token, params \\ %{})

View Source

Specs

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

PUT /v1/me/tracks

Parameters

  • ids: required