Skip to content

Instantly share code, notes, and snippets.

@mayhem
Created June 12, 2012 13:45
Show Gist options
  • Save mayhem/2917595 to your computer and use it in GitHub Desktop.
Save mayhem/2917595 to your computer and use it in GitHub Desktop.
var sp = getSpotifyApi(1);
exports.init = init;
function init()
{
console.log("init()");
var models = sp.require('sp://import/scripts/api/models');
var a = models.Album.fromURI("spotify:album:4o1KACGnM1m7o3qoiM3hDx", function(album) {
console.log("Album loaded", album.name);
console.log("Album cover", album.cover);
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment