spotify_ex v2.2.1 Spotify.Artist View Source
Functions for retrieving information about artists and for managing a user’s followed artists.
There are two functions for each endpoint, one that actually makes the request, and one that provides the endpoint:
Spotify.Playist.create_playlist(conn, "foo", "bar") # makes the POST request.
Spotify.Playist.create_playlist_url("foo", "bar") # provides the url for the request.
Link to this section Summary
Functions
Get the current user’s followed artists
Get the current user’s followed artists
Implements the hook expected by the Responder behaviour
Get Spotify catalog information for a single artist identified by their unique Spotify ID. Spotify Documenation
Get Spotify catalog information for a single artist identified by their unique Spotify ID
Get Spotify catalog information for several artists based on their Spotify IDs. Spotify Documenation
Get Spotify catalog information for several artists based on their Spotify IDs
Get Spotify catalog information about artists similar to a given artist. Spotify Documenation
Get Spotify catalog information about artists similar to a given artist
Get Spotify catalog information about an artist’s top tracks by country. Spotify Documenation
Get Spotify catalog information about an artist’s top tracks by country
Link to this section Functions
artists_I_follow(conn, params \\ []) View Source
Get the current user’s followed artists.
Method: GET
Optional Params: type
, limit
, after
Spotify.Artist.artists_I_follow_url(conn)
# => { :ok, %Paging{items: [%Artist{}, ...]} }
artists_I_follow_url(params) View Source
Get the current user’s followed artists.
iex> Spotify.Artist.artists_I_follow_url(limit: 5)
"https://api.spotify.com/v1/me/following?type=artist&limit=5"
build_response(body) View Source
Implements the hook expected by the Responder behaviour
get_artist(conn, id) View Source
Get Spotify catalog information for a single artist identified by their unique Spotify ID. Spotify Documenation
Method: GET
Spotify.Artist.get_artist(conn, "4")
# => { :ok, %Artist{}}
get_artist_url(id) View Source
Get Spotify catalog information for a single artist identified by their unique Spotify ID.
iex> Spotify.Artist.get_artist_url("4")
"https://api.spotify.com/v1/artists/4"
get_artists(conn, params) View Source
Get Spotify catalog information for several artists based on their Spotify IDs. Spotify Documenation
Method: GET
Required Params: ids
Spotify.Artist.get_artists(conn, ids: "1,4")
# => { :ok, [%Artist{}, ...] }
get_artists_url(params) View Source
Get Spotify catalog information for several artists based on their Spotify IDs.
iex> Spotify.Artist.get_artists_url(ids: "1,4")
"https://api.spotify.com/v1/artists?ids=1%2C4"
get_top_tracks(conn, id, params) View Source
Get Spotify catalog information about an artist’s top tracks by country. Spotify Documenation
Method: GET
Required Params: country
Spotify.get_top_tracks(conn, "4", country: "US")
# => { :ok, [%Track{}, ...] }
get_top_tracks_url(id, params) View Source
Get Spotify catalog information about an artist’s top tracks by country.
iex> Spotify.Artist.get_top_tracks_url("4", country: "US")
"https://api.spotify.com/v1/artists/4/top-tracks?country=US"