deezer-rs is a Rust client library for accessing the Deezer API
[dependencies]
deezer-rs = { git = "https://github.com/tsirysndr/deezer-rs" }
Construct a new Deezer client, then use the various services on the client to access different parts of the Deezer API. For example:
use deezer_rs::Deezer;
#[tokio::main]
async fn main() {
let client = Deezer::new();
let album = client.album.get("302127").await;
let tracks = client.album.get_tracks("302127").await;
let artist = client.artist.get("27").await;
println!("{:#?}\n", album.unwrap());
println!("{:#?}\n", tracks.unwrap());
println!("{:#?}\n", artist.unwrap());
}
๐ค Tsiry Sandratraina
- Website: https://tsiry-sandratraina.netlify.com
- Twitter: @tsiry_sndr
- Github: @tsirysndr
Give a โญ๏ธ if this project helped you!