0.2.0 • Published 12 years ago

lastfm-spotify-urilist v0.2.0

Weekly downloads
1
License
-
Repository
github
Last release
12 years ago

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.