Skip to content
This repository has been archived by the owner on Apr 19, 2021. It is now read-only.
/ gmusic-rs Public archive

An unofficial client library for Google Music

License

Notifications You must be signed in to change notification settings

maxjoehnk/gmusic-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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?;
}