spotify_ex v2.0.8 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
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"