spotify-client-rs

Crates.iospotify-client-rs
lib.rsspotify-client-rs
version0.1.0
sourcesrc
created_at2024-05-25 09:10:47.634549
updated_at2024-05-25 09:10:47.634549
descriptionA util crate for Spotify Auth Client
homepage
repository
max_upload_size
id1251858
size63,064
(wuliao97)

documentation

README

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(())
    }
Commit count: 0

cargo fmt