mirror of
https://gitlab.com/tandy1000/lastfm-nim
synced 2026-01-15 10:11:37 +00:00
No description
| docs | ||
| src | ||
| tests | ||
| .gitignore | ||
| .gitlab-ci.yml | ||
| lastfm.nimble | ||
| LICENSE | ||
| README.md | ||
import lastfm
import lastfm/[track, artist, album, tag, geo, user]
Full documentation is available here.
This library contains multisync-friendly bindings to the Last.FM web API. The library returns API data as JsonNodes.
The list below shows each API method exposed by the package, the function implementing that method, and the submodule in which it is implemented:
API methods in lastfm/track
- track.addTags:
trackAddTags - track.getCorrection:
trackCorrection - track.getInfo:
trackInfo - track.getSimilar:
similarTracks - track.getTags:
trackTags - track.getTopTags:
trackTopTags - track.love:
loveTrack - track.removeTag:
trackRemoveTag - track.scrobble:
scrobble - track.search:
searchTracks - track.unlove:
unloveTrack - track.updateNowPlaying:
setNowPlaying
API methods in lastfm/artist
- artist.addTags:
artistAddTags - artist.getCorrection:
artistCorrection - artist.getInfo:
artistInfo - artist.getSimilar:
similarArtists - artist.getTags:
artistTags - artist.getTopAlbums:
artistTopAlbums - artist.getTopTags:
artistTopTags - artist.getTopTracks:
artistTopTracks - artist.removeTag:
artistRemoveTag - artist.search:
searchArtists
API methods in lastfm/album
- album.getInfo:
albumInfo - album.addTags:
albumAddTags - album.removeTag:
albumRemoveTag - album.getTags:
albumTags - album.getTopTags:
albumTopTags - album.search:
searchAlbums
API methods in lastfm/tag
- tag.getInfo:
tagInfo - tag.getSimilar:
similarTags - tag.getTopAlbums:
topAlbumsForTag - tag.getTopArtists:
topArtistsForTag - tag.getTopTracks:
topTracksForTag - tag.getTopTags:
topTags - tag.getWeeklyChartList:
weeklyChartsForTag
API methods in lastfm/chart
- chart.getTopTracks:
chartTopTracks - chart.getTopTags:
chartTopTags - chart.getTopArtists:
chartTopArtists
API methods in lastfm/geo
- geo.getTopTracks:
geoTopTracks - geo.getTopArtists:
geoTopArtists
API methods in lastfm/user
- user.getInfo:
userInfo - user.getLovedTracks:
userLovedTracks - user.getRecentTracks:
userRecentTracks - user.getPersonalTags:
userPersonalTags - user.getTopTracks:
userTopTracks - user.getTopArtists:
userTopArtists - user.getTopAlbums:
userTopAlbums - user.getTopTags:
userTopTags
Furthermore, the following client authentication flows are supported:
- Desktop Application Flow using the
desktopAuthproc. - Mobile Application Flow using the
mobileAuthproc. - Or, provide an already-authenticated session key directory using the
loadAuthproc.