spotify_ex v2.2.1 Spotify.Track View Source
Functions for retrieving information about one or more tracks.
There are two functions for each endpoint; one that actually makes the request, and one that provides the endpoint:
Spotify.Track.audio_features(conn, ids: "1, 3") # makes the GET request
Spotify.Track.audio_features_url(ids: "1, 3") # provides the url for the request
Link to this section Summary
Functions
Get audio features for a track Spotify Documentation
Get audio features for a track
Implements the hook expected by the Responder behaviour
Get a track Spotify Documentation
Get a track
Get several tracks Spotify Documentation
Get several tracks
Link to this section Functions
Link to this function
audio_features(conn, params) View Source
Get audio features for a track Spotify Documentation
Method: GET
Spotify.Track.audio_features(conn, "1")
# => {:ok ,%Spotify.AudioFeatures{}}
Link to this function
audio_features_url(params) View Source
Get audio features for a track
iex> Spotify.Track.audio_features_url("1")
"https://api.spotify.com/v1/audio-features/1"
Link to this function
build_response(body) View Source
Implements the hook expected by the Responder behaviour
Link to this function
get_track(conn, id) View Source
Get a track Spotify Documentation
Method: GET
Optional Params: market
Spotify.get_track(conn, id)
# => { :ok , %Spotify.Track{} }
Link to this function
get_track_url(id) View Source
Get a track
iex> Spotify.Track.get_track_url("1")
"https://api.spotify.com/v1/tracks/1"
Link to this function
get_tracks(conn, params) View Source
Get several tracks Spotify Documentation
Spotify.Track.get_tracks(conn, ids: "1,3")
# => { :ok , [%Spotify.Track{}, ...] }
Method: GET
Link to this function
get_tracks_url(params) View Source
Get several tracks
iex> Spotify.Track.get_tracks_url(ids: "1,3")
"https://api.spotify.com/v1/tracks?ids=1%2C3"
Link to this function