Skip to content

tsirysndr/deezer-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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!

Releases

No releases published

Packages

No packages published

Languages