An open API service indexing awesome lists of open source software.

https://github.com/tsirysndr/deezer-rs

Rust library for accessing the Deezer API
https://github.com/tsirysndr/deezer-rs

deezer deezer-api rust rust-crate

Last synced: 10 months ago
JSON representation

Rust library for accessing the Deezer API

Awesome Lists containing this project

README

          

deezer-rs




License: BSD





Twitter: tsiry_sndr

deezer-rs is a Rust client library for accessing the [Deezer API](https://developers.deezer.com/api)

## Install

```toml
[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:

```rust
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**

* Website: https://tsiry-sandratraina.netlify.com
* Twitter: [@tsiry_sndr](https://twitter.com/tsiry_sndr)
* Github: [@tsirysndr](https://github.com/tsirysndr)

## Show your support

Give a ⭐️ if this project helped you!