lastfm-api-fixed
Version:
A Last.fm API client library wrapper with a simple and clean interface.
11 lines (8 loc) • 307 B
JavaScript
var defaults = require('./defaults');
var Library = module.exports = function (lastfm) {
this.lastfm = lastfm;
};
Library.prototype.getArtists = function (params, callback) {
var options = defaults.defaultOptions(params, callback, 'artists');
this.lastfm.api.request('library.getArtists', options);
};