GoogleMusic.NET is an unofficial API for Google Music for the .NET framework. It is written in C#. GoogleMusic.NET is partially derived from gmusicapi by Simon Weber. It is not supported nor endorsed by Google.
using GoogleMusic;
...
string email = "[email protected]";
string password = "my-password";
GoogleMusicMobileClient MobileClient = new GoogleMusicMobileClient();
Console.WriteLine("Login...\n");
MobileClient.MasterLogin(email, password, MobileClient.MACaddress);
Console.WriteLine("Reading library...\n");
Tracklist tracks = MobileClient.GetAllTracks();
tracks.SortByAlbumArtist();
foreach (Track track in tracks)
Console.WriteLine("{0} - {1}", track.albumArtistUnified, track.title);
Console.WriteLine("Reading playlists...\n");
Playlists playlists = MobileClient.GetAllPlaylists();
foreach (Playlist playlist in playlists)
Console.WriteLine(playlist.ToString());
GoogleMusic.NET is used by the following project
- Google Music for Jamcast adds Google Music browse and playback capabilities to Jamcast, a DLNA media server for Windows.
Copyright 2014, Lutz Bürkle. Licensed under the 3-clause BSD. See LICENSE.