Skip to content

ffleischer/GoogleMusic.NET

 
 

Repository files navigation

GoogleMusic.NET

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 = "user@gmail.com";
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


Copyright 2014, Lutz Bürkle. Licensed under the 3-clause BSD. See LICENSE.

About

An unofficial Google Music API for .NET

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 100.0%