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
- Host: GitHub
- URL: https://github.com/tsirysndr/deezer-rs
- Owner: tsirysndr
- License: bsd-3-clause
- Created: 2021-10-07T19:58:51.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-11-30T15:12:57.000Z (over 2 years ago)
- Last Synced: 2025-06-21T15:07:47.213Z (12 months ago)
- Topics: deezer, deezer-api, rust, rust-crate
- Language: Rust
- Homepage:
- Size: 31.3 KB
- Stars: 7
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
deezer-rs
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!