spotify_ex v2.2.1 Spotify.Search View Source
Spotify search endpoints. Spotify allows querying for artists, albums, playlists, and tracks.
Link to this section Summary
Functions
Implements the hook required by the Responder behaviour
Search for a playlist. Spotify Documentation
Search for a playlist, artist, album, or track.
iex> Spotify.Search.query_url(q: "foo", type: "playlist")
"https://api.spotify.com/v1/search?q=foo&type=playlist"
Link to this section Functions
Link to this function
build_response(body) View Source
Implements the hook required by the Responder behaviour
Link to this function
handle_response(arg) View Source
Link to this function
query(conn, params) View Source
Search for a playlist. Spotify Documentation
Method: GET
Required Params: q
, type
Optional Params: limit
, offset
, market
Spotify.Search.query(conn, q: "foo", type: "playlist")
# => {:ok, %{ items: [%Spotify.Playlist{..} ...]}}
Link to this function
query_url(params) View Source
Search for a playlist, artist, album, or track.
iex> Spotify.Search.query_url(q: "foo", type: "playlist")
"https://api.spotify.com/v1/search?q=foo&type=playlist"