/deezer-rs

Rust library for accessing the Deezer API

Primary LanguageRustBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

deezer-rs

License: BSD Twitter: tsiry_sndr

deezer-rs is a Rust client library for accessing the Deezer API

Install

[dependencies]
deezer-rs = { git = "https://github.com/tsirysndr/deezer-rs" }

Usage

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());
}

Author

👤 Tsiry Sandratraina

Show your support

Give a ⭐️ if this project helped you!