spotify_ex v2.0.7 Spotify.Search

Spotify search endpoints. Spotify allows querying for artists, albums, playlists, and tracks.

Summary

Functions

Implements the hook required by the Responder behaviour

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"

Functions

build_response(body)

Implements the hook required by the Responder behaviour

handle_response(arg)
query(conn, params)

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{..} ...]}}
query_url(params)

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"