2 releases

0.1.2 Feb 9, 2024
0.1.1 Jan 31, 2024

#165 in #api-wrapper

Download history 6/week @ 2024-01-29 6/week @ 2024-02-05 14/week @ 2024-02-19 32/week @ 2024-02-26 15/week @ 2024-03-11 28/week @ 2024-04-01 150/week @ 2024-04-22

150 downloads per month
Used in wanisabi

MIT license

13KB
336 lines

Continuous Integration MIT License Crate version

Wanisabi

An API wrapper for the wanikani API written in rust.

Usage/Examples

#[tokio::main]
async fn main() -> Result<(), wanisabi::Error> {
    let client = Client::new("<WANIKANI_API_KEY>");
    let params = vec![
        AssignmentsFilter::ImmediatelyAvailableForLessons,
    ];
    let assignments = client.get_assignments_filtered(params).await?;
}

Note that Client::default() attempts to retreive the API key from the WANIKANI_API_KEY environment variable.

Dependencies

~1.4–2.2MB
~41K SLoC