lastfm.ql

lastfm.ql
Contents of the file.

Function Overview

Function Description
native fun getFriends(user) Get the friends of a user. This is unpaged, so it returns the first 50.
native fun getFriends(user, page) Get the friends of a user.
native fun getUser(user)
native fun getLovedTracks(user) Gets the tracks favorited by the user. This is unpaged, so it returns the first 50.
native fun getLovedTracks(user, page) Gets the tracks favorited by the user.
native fun getRecentTracks(user) Gets the tracks recently played by the user. This is unpaged, so it returns the most recent 50.
native fun getRecentTracks(user, page, dateRange) Gets the tracks recently played by the user.
native fun getTopAlbums(user) Gets the top albums of a user. This is unpaged, so it returns the all time top 50.
native fun getTopAlbums(user, page, dateRange) Gets the top albums of a user.
native fun getTopArtists(user) Gets the top artists of a user. This is unpaged, so it returns the all time top 50.
native fun getTopArtists(user, page, dateRange) Gets the top artists of a user.
native fun getTopTracks(user) Gets the top tracks of a user. This is unpaged, so it returns the all time top 50.
native fun getTopTracks(user, period, page) Gets the top tracks of a user. This is unpaged, so it returns the all time top 50.

Functions

native fun getFriends(user) link

Get the friends of a user. This is unpaged, so it returns the first 50.

Params
user ( string )

The username of the user to get the friends of

Returns LastFmResult

The result of the request, with data being a list of User s, and no wrapped data

native fun getFriends(user, page) link

Get the friends of a user.

Params
user ( string )

The username of the user to get the friends of

page ( Page )

The page of the request

Returns LastFmResult

The result of the request, with data being a list of User s, and no wrapped data

native fun getUser(user) link
native fun getLovedTracks(user) link

Gets the tracks favorited by the user. This is unpaged, so it returns the first 50.

Params
user ( string )

The username of the user to get the loved tracks of

Returns LastFmResult

The result of the request, with data being a list of songs, and wrapped data as a list of LovedTrack

native fun getLovedTracks(user, page) link

Gets the tracks favorited by the user.

Params
user ( string )

The username of the user to get the loved tracks of

page ( Page )

The page of the request

Returns LastFmResult

The result of the request, with data being a list of songs, and wrapped data as a list of LovedTrack

native fun getRecentTracks(user) link

Gets the tracks recently played by the user. This is unpaged, so it returns the most recent 50.

Params
user ( string )

The username of the user to get the recent tracks of

Returns LastFmResult

The result of the request, with data being a list of songs, and wrapped data as a list of RecentTrack

native fun getRecentTracks(user, page, dateRange) link

Gets the tracks recently played by the user.

Params
user ( string )

The username of the user to get the recent tracks of

page ( Page )

The page of the request

dateRange ( DateRange )

The range of dates to get the tracks from

Returns LastFmResult

The result of the request, with data being a list of songs, and wrapped data as a list of RecentTrack

native fun getTopAlbums(user) link

Gets the top albums of a user. This is unpaged, so it returns the all time top 50.

Params
user ( string )

The username of the user to get the top albums of

Returns LastFmResult

The result of the request, with data being a list of albums, and wrapped data as a list of TopAlbum

native fun getTopAlbums(user, page, dateRange) link

Gets the top albums of a user.

Params
user ( string )

The username of the user to get the top albums of

period ( string )

The period to get the top albums for. Can be "overall", "7day", "1month", "3month", "6month", or "12month"

page ( Page )

The page of the request

Returns LastFmResult

The result of the request, with data being a list of albums, and wrapped data as a list of TopAlbum

native fun getTopArtists(user) link

Gets the top artists of a user. This is unpaged, so it returns the all time top 50.

Params
user ( string )

The username of the user to get the top artists of

Returns LastFmResult

The result of the request, with data being a list of artists, and wrapped data as a list of TopArtist

native fun getTopArtists(user, page, dateRange) link

Gets the top artists of a user.

Params
user ( string )

The username of the user to get the top artists of

period ( string )

The period to get the top albums for. Can be "overall", "7day", "1month", "3month", "6month", or "12month"

page ( Page )

The page of the request

Returns LastFmResult

The result of the request, with data being a list of artists, and wrapped data as a list of TopArtist

native fun getTopTracks(user) link

Gets the top tracks of a user. This is unpaged, so it returns the all time top 50.

Params
user ( string )

The username of the user to get the top tracks of

Returns LastFmResult

The result of the request, with data being a list of songs, and wrapped data as a list of TopTrack

native fun getTopTracks(user, period, page) link

Gets the top tracks of a user. This is unpaged, so it returns the all time top 50.

Params
user ( string )

The username of the user to get the top tracks of

period ( string )

The period to get the top tracks for. Can be "overall", "7day", "1month", "3month", "6month", or "12month"

page ( Page )

The page of the request

Returns LastFmResult

The result of the request, with data being a list of songs, and wrapped data as a list of TopTrack