Skip to content

An API wrapper for bangumi.tv based on reqwest

License

Notifications You must be signed in to change notification settings

duskmoon314/bgmtv-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bgmtv

bgmtv is an API wrapper for bangumi.tv based on reqwest.

Usage

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(())
}

About

An API wrapper for bangumi.tv based on reqwest

Topics

Resources

License

Stars

Watchers

Forks

Languages