View Source LastfmArchive.LastfmClient (lastfm_archive v0.9.2)

Client for extracting Lastfm user info and scrobbles data via the official API.

Link to this section Summary

Link to this section Types

@type t() :: %LastfmArchive.LastfmClient{
  api_key: binary(),
  endpoint: binary(),
  method: binary()
}

Link to this section Functions

Link to this function

info(user \\ default_user(), client \\ new("user.getinfo"))

View Source

Returns the total playcount and earliest scrobble date for a user.

Link to this function

playcount(user \\ default_user(), arg \\ {nil, nil}, client \\ new("user.getrecenttracks"))

View Source

Returns the playcount of a user for a given time range.

Link to this function

scrobbles(user \\ default_user(), page_params \\ {1, 1, nil, nil}, client \\ new("user.getrecenttracks"))

View Source

Returns the scrobbles of a user for a given time range.

See Lastfm API documentation for more details.