node package manager
Stop wasting time. Easily manage code sharing in your team. Create a free org »

lastfm-spotify-urilist

lastfm-spotify-urilist

A work in progress for trying to fork out a module from the Simplify Play Button project.

An easy way of getting a list of Spotify URIs based on Last.fm data (top/loved tracks and weekly chart list of tracks).

Getting Started

Install the module with: npm install lastfm-spotify-urilist

var lsu = require('lastfm-spotify-urilist'),
    tracksProvider = new lsu.SpotifyURIProvider({
        api_key: process.env.SIMPLIFY_LASTFM_API_KEY,
        secret: process.env.SIMPLIFY_LASTFM_SECRET
    });

Documentation

(Coming soon)

Examples

Having the tracksProvider object, as defined above, use this simple code to get the loved tracks of a user:

tracksProvider.getURIList("loved", "mikaelb1", function (err, data) {
    console.log(data); // List of Spotify URIs from Loved tracks on Last.fm  
});
 

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using grunt.

Release History

(Nothing yet)

License

Copyright (c) 2012 Mikael Brevik
Licensed under the MIT license.