#client #api-bindings #google-music

gmusic

An unofficial client library for Google Music

4 releases (2 breaking)

0.3.1 Jun 2, 2020
0.3.0 May 19, 2020
0.2.0 May 19, 2020
0.1.0 Jan 2, 2020

#2238 in #client

GPL-3.0 license

35KB
785 lines

gmusic-rs

https://docs.rs/gmusic Build Status

An unofficial client library for Google Music.

Port of gmusicapi.

Usage

Add the following to your Cargo.toml file.

[dependencies]
gmusic = "0.3"

Generate a client id and client secret.

use gmusic::{GoogleMusicApi, auth::stdio_login};

#[tokio::main]
async fn main() {
    let api = GoogleMusicApi::new(client_id, client_secret, None)?;

    api.login(stdio_login).await?;

    let tracks = api.get_all_tracks().await?;
}

Dependencies

~9–13MB
~263K SLoC