Sptfy.Track (Sptfy v0.1.3) View Source

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

Link to this section Summary

Link to this section Functions

Link to this function

get_audio_analysis(token, params \\ %{})

View Source

Specs

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

GET /v1/audio-analysis/:id

Parameters

  • id: required
Link to this function

get_track(token, params \\ %{})

View Source

Specs

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

GET /v1/tracks/:id

Parameters

  • id: required
  • market
Link to this function

get_track_audio_features(token, params \\ %{})

View Source

Specs

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

GET /v1/audio-features/:id

Parameters

  • id: required
Link to this function

get_tracks(token, params \\ %{})

View Source

Specs

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

GET /v1/tracks

Parameters

  • ids: required
  • market
Link to this function

get_tracks_audio_features(token, params \\ %{})

View Source

Specs

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

GET /v1/audio-features

Parameters

  • ids: required