Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/duskmoon314/bgmtv-rs

An API wrapper for bangumi.tv based on reqwest
https://github.com/duskmoon314/bgmtv-rs

api-client bangumitv rust

Last synced: about 2 months ago
JSON representation

An API wrapper for bangumi.tv based on reqwest

Awesome Lists containing this project

README

        

# bgmtv

bgmtv is an API wrapper for [bangumi.tv](https://bgm.tv) based on [reqwest](https://crates.io/reqwest).

## Usage

```rust
use bgmtv::prelude::*;

#[tokio::main]
async fn main() -> anyhow::Result<()> {
let client = Client::builder()
.user_agent("duskmoon/bgmtv/0.1.0 (https://github.com/duskmoon314/bgmtv-rs)")
.build()?;

let subject = client.get_subject(3559).await?;

assert_eq!(subject.name, "とある魔術の禁書目録");

Ok(())
}
```