Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/duskmoon314/bgmtv-rs
- Owner: duskmoon314
- License: mit
- Created: 2024-10-14T14:50:24.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-10-24T05:31:09.000Z (3 months ago)
- Last Synced: 2024-10-24T23:35:18.964Z (3 months ago)
- Topics: api-client, bangumitv, rust
- Language: Rust
- Homepage:
- Size: 87.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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(())
}
```