Skip to content

Instantly share code, notes, and snippets.

@ahmadsoe
Created September 23, 2014 09:37
Show Gist options
  • Save ahmadsoe/8d7ab1930fe483ea99a7 to your computer and use it in GitHub Desktop.
Save ahmadsoe/8d7ab1930fe483ea99a7 to your computer and use it in GitHub Desktop.
spotify starred
// 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