Library lastfm

v1.0.0Adam Yarris

Global Functions

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 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.
native fun getUser(user)

Import Aliases

spotify This is a description for spotify.
spotify.builder This is a description for spotify.builder.
spotify.friends This is a description for spotify.friends.
audio This is a description for audio.

Extension 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

lastfm:lastfm.ql
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

lastfm:lastfm.ql
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

lastfm:lastfm.ql
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

lastfm:lastfm.ql
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

lastfm:lastfm.ql
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

lastfm:lastfm.ql
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

lastfm:lastfm.ql
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

lastfm:lastfm.ql
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

lastfm:lastfm.ql
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

lastfm:lastfm.ql
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

lastfm:lastfm.ql
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

lastfm:lastfm.ql
native fun getUser(user) link

lastfm:lastfm.ql