I'm trying to get the list of albums for an artist in an app using the Spotify Apps API. The documentation says that there is a getAlbums method in the Artist class which will get the albums for the artist:
http://developer.spotify.com/download/spotify-apps-api/reference/8a6410b5e6.html
However, when I use this in my code I get the error:
Uncaught TypeError: Object artist name has no method 'getAlbums'"
Here is the code I am using:
console.log(artist);
var a = artist.getAlbums(function(albums) {
console.log(albums);
});
Checking in the Console, the variable artist is definitely an Artist class. Am I missing something, or is this method not yet implemented (or removed)? I believe I am using the latest preview version (0.8.2.572.geb65f9ac).