Created
June 12, 2012 13:45
-
-
Save mayhem/2917595 to your computer and use it in GitHub Desktop.
This file contains 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
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