Novice, Practiced, Mastered
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    lastfm-spotify-urilistpublic

    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.

    Keywords

    none

    install

    npm i lastfm-spotify-urilist

    Downloadsweekly downloads

    6

    version

    0.2.0

    license

    none

    repository

    githubgithub

    last publish

    collaborators

    • avatar