Created
September 23, 2014 09:37
-
-
Save ahmadsoe/8d7ab1930fe483ea99a7 to your computer and use it in GitHub Desktop.
spotify starred
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// npm install 1994rstefan/node-spotify-web | |
var Spotify = require('spotify-web'); | |
// Spotify credentials... | |
var username = process.argv[2]; | |
var password = process.argv[3]; | |
// console.log("username:"+username); | |
// console.log("pass:" + password); | |
Spotify.login(username, password, function (err, spotify) { | |
if (err) throw err; | |
spotify.starred( username , function (err, starred) { | |
if (err) throw err; | |
// console.log(starred.contents); | |
spotify.disconnect(); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment