#spotify #authentication #client

spotify-client-rs

A util crate for Spotify Auth Client

1 unstable release

new 0.1.0 May 25, 2024

#78 in #spotify

Download history 143/week @ 2024-05-20

143 downloads per month

Custom license

61KB
1.5K SLoC

A simplified crate of Spotify Auth Client

Usage

#[tokio::main]
async fn main() -> anyhow::Result<()> {
    let config =  &Configs::from_pass("", "");
    let mut handler = ClientHandler::new();
    let client = handler.client_new(config).await?;
    
    let track_id = TrackId::from_id("6D6Pybzey0shI8U9ttRAPx")?;
    let result = client.track(track_id, None).await?;

    dbg!(result);

    Ok(())
    }

Dependencies

~28–45MB
~716K SLoC