Get a list of the recent tracks listened to by this user. Also includes the currently playing track with the nowplaying="true" attribute if the user is currently listening. Implementation of last.fm's user.getRecentTracks API method (http://www.last.fm/api/show/user.getRecentTracks).
user_getRecentTracks(user, limit = NA, page = 1, from = NA, to = NA, extended = 0)
user | The last.fm username to fetch the recent tracks of. |
---|---|
limit | The number of results to fetch per page. Defaults to 50. Maximum is 200. |
page | The page number you wish to scan to. |
from | Beginning timestamp of a range - only display scrobbles after this time, in UNIX timestamp format (integer number of seconds since 00:00:00, January 1st 1970 UTC). This must be in the UTC time zone. |
to | End timestamp of a range - only display scrobbles before this time, in UNIX timestamp format (integer number of seconds since 00:00:00, January 1st 1970 UTC). This must be in the UTC time zone. |
extended | Includes extended data in each artist, and whether or not the user has loved each track |
A list of the recent tracks.
# NOT RUN { user_getRecentTracks("platyjus") # }