Crates.io | bgmtv |
lib.rs | bgmtv |
version | 0.2.0 |
source | src |
created_at | 2024-10-15 07:01:12.621915 |
updated_at | 2024-10-25 08:30:03.141814 |
description | An API wrapper for bangumi.tv based on reqwest. |
homepage | |
repository | https://github.com/duskmoon314/bgmtv-rs |
max_upload_size | |
id | 1409053 |
size | 67,965 |
bgmtv is an API wrapper for bangumi.tv based on reqwest.
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(())
}