1 unstable release

0.1.0 Dec 12, 2019

#53 in #anime


Used in anitable-tui

MIT license

8KB
122 lines

Anitable

Crates.io documentation Crates.io Build Status Build Status

애니시아 애니편성표 API client library

사용예제

use anitable::*;

#[tokio::main]
async fn main() -> Result<(), reqwest::Error> {
    let client = Anitable::new();
    let data = client.list(Tabletype::Sun).await?; // 일요일
    println!("{:?}", data); // 애니목록 출력

    let data = client.cap(data[0].id).await?; // 애니목록 0번째 자막
    println!("{:?}", data); // 자막목록 출력
    Ok(())
}

License

MIT

Dependencies

~5–10MB
~215K SLoC