View Source Spotify.Search (spotify_ex v2.4.0)
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.
Link to this section Functions
Implements the hook required by the Responder behaviour
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{..} ...]}}
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"