2 releases

0.1.2 Feb 9, 2024
0.1.1 Jan 31, 2024

#260 in #api-wrapper


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.3–2.1MB
~40K SLoC