Module user

back

Types

TaggingType = enum  
ttArtist = "artist", ttAlbum = "album", ttTrack = "track"
Used by userPersonalTags to specify what type of tags should be returned by the API method call.
Period = enum  
pOverall = "overall", p7day = "7day", p1month = "1month", p3month = "3month",  
p6month = "6month", p12month = "12month"
Used by userTopAlbums, userTopArtists, and userTopTracks to represent the "period" field.

Procs

proc userLovedTracks(fm: LastFM; user: string; page = 1; limit = 50): Future[JsonNode] {.
raises: [FutureError], tags: [ReadIOEffect, WriteIOEffect, TimeEffect, RootEffect]
.}
Breakout of User.getLovedTracks. Returns the JsonNode of the contents of the response.
proc userRecentTracks(fm: LastFM; user: string; page = 1; limit = 50; extended = off): Future[  
JsonNode] {.
raises: [FutureError], tags: [ReadIOEffect, WriteIOEffect, TimeEffect, RootEffect]
.}
Breakout of User.getRecentTracks. Returns the JsonNode of the contents of the response.
proc userPersonalTags(fm: LastFM; user, tag: string; taggingtype: TaggingType; page = 1;  
limit = 50): Future[JsonNode] {.
raises: [FutureError], tags: [ReadIOEffect, WriteIOEffect, TimeEffect, RootEffect]
.}
Breakout of User.getPersonalTags. Returns the JsonNode of the contents of the response.
proc userInfo(fm: LastFM; user: string): Future[JsonNode] {.
raises: [FutureError], tags: [ReadIOEffect, WriteIOEffect, TimeEffect, RootEffect]
.}
Breakout of User.getInfo. Returns the JsonNode of the contents of the response.
proc userTopAlbums(fm: LastFM; user: string; period = pOverall; page = 1; limit = 50): Future[  
JsonNode] {.
raises: [FutureError], tags: [ReadIOEffect, WriteIOEffect, TimeEffect, RootEffect]
.}
Breakout of User.getTopAlbums. Returns the JsonNode of the contents of the response.
proc userTopArtists(fm: LastFM; user: string; period = pOverall; page = 1; limit = 50): Future[  
JsonNode] {.
raises: [FutureError], tags: [ReadIOEffect, WriteIOEffect, TimeEffect, RootEffect]
.}
Breakout of User.getTopArtists. Returns the JsonNode of the contents of the response.
proc userTopTracks(fm: LastFM; user: string; period = pOverall; page = 1; limit = 50): Future[  
JsonNode] {.
raises: [FutureError], tags: [ReadIOEffect, WriteIOEffect, TimeEffect, RootEffect]
.}
Breakout of User.getTopTracks. Returns the JsonNode of the contents of the response.
proc userTopTags(fm: LastFM; user: string): Future[JsonNode] {.
raises: [FutureError], tags: [ReadIOEffect, WriteIOEffect, TimeEffect, RootEffect]
.}
Breakout of User.getTopTags. Returns the JsonNode of the contents of the response.
proc weeklyAlbumChart(fm: LastFM; user: string): Future[JsonNode] {.
raises: [FutureError], tags: [ReadIOEffect, WriteIOEffect, TimeEffect, RootEffect]
.}
Breakout of User.getWeeklyAlbumChart. Returns the JsonNode of the contents of the response.
proc weeklyArtistChart(fm: LastFM; user: string): Future[JsonNode] {.
raises: [FutureError], tags: [ReadIOEffect, WriteIOEffect, TimeEffect, RootEffect]
.}
Breakout of User.getWeeklyArtistChart. Returns the JsonNode of the contents of the response.
proc weeklyTrackChart(fm: LastFM; user: string): Future[JsonNode] {.
raises: [FutureError], tags: [ReadIOEffect, WriteIOEffect, TimeEffect, RootEffect]
.}
Breakout of User.getWeeklyTrackChart. Returns the JsonNode of the contents of the response.
proc weeklyChartList(fm: LastFM; user: string): Future[JsonNode] {.
raises: [FutureError], tags: [ReadIOEffect, WriteIOEffect, TimeEffect, RootEffect]
.}
Breakout of User.getWeeklyChartList. Returns the JsonNode of the contents of the response.