elixirfm v0.0.10 Elixirfm.Artist

Wrapper for Last.fm Artist endpoints.

Currently only supports endpoints that do not require authentication.

todo: artist.addTags artist.getTags artist.removeTags

Summary

Functions

Use the last.fm corrections data to check whether the supplied artist has a correction to a canonical artist

Retrive list of Similar Artists

Get Top albums for an artist, ordered by popularity

Gets top tags for an artist on Lastfm, ordered by popularity

Gets top tracks for an artist, ordered by popularity. (defaults to first 15)

Functions

get_correction(query)
get_correction(String.t) :: Elixirfm.response

Use the last.fm corrections data to check whether the supplied artist has a correction to a canonical artist

get_info(query, args \\ [lang: "eng", username: ""])
get_info(String.t, [lang: String.t, username: String.t]) :: Elixirfm.response

Get artist info

get_similar(query, args \\ [limit: 10])
get_similar(String.t, [{:limit, integer}]) :: Elixirfm.response

Retrive list of Similar Artists

get_top_album(query, args \\ [page: 1, limit: 30])
get_top_album(String.t, [page: integer, limit: integer]) :: Elixirfm.response

Get Top albums for an artist, ordered by popularity

get_top_tags(query)
get_top_tags(String.t) :: Elixirfm.response

Gets top tags for an artist on Lastfm, ordered by popularity

get_top_tracks(query, args \\ [page: 1, limit: 15])
get_top_tracks(String.t, [page: integer, limit: integer]) :: Elixirfm.response

Gets top tracks for an artist, ordered by popularity. (defaults to first 15)

search(query, args \\ [page: 1, limit: 30])
search(String.t, [page: integer, limit: integer]) :: Elixirfm.response

Search an artist