0.0.11 • Published 10 years ago

googlemusicapi v0.0.11

Weekly downloads
10
License
-
Repository
github
Last release
10 years ago

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('user@gmail.com', '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
			}
		});
	});