googlemusicapi
v0.0.11
Published
Access to Google Music
Downloads
3
Readme
GoogleMusicAPI.NodeJS an unofficial API for Google Play Music
GOOGLE MUSIC API
allows control of
Google Music <http://music.google.com>
with NodeJS.
Requires:
- GoogleClientLogin (use file in project, original module does not have needed feature)
- restler
var googlemusic = new GoogleMusic('[email protected]', 'password');
googlemusic.Login(function () {
googlemusic.GetAllSongs('', function(result) {
var length = result.length;
var i;
for (i=0 ; i<length ; i++) {
console.log(result[i].title); // get title of all songs
}
});
googlemusic.GetPlaylist('All', function(result) {
var length = result.length;
var i;
for (i=0 ; i<length ; i++) {
console.log(result[i].playListId); // get id of all playlists
}
});
});