wanisabi

Crates.iowanisabi
lib.rswanisabi
version0.1.6
sourcesrc
created_at2024-01-31 17:12:42.284004
updated_at2024-02-14 16:54:50.112242
descriptionRust binding for the wanikani API: a fork of wanikani-rs
homepagehttps://github.com/jemsurfer/wanisabi
repositoryhttps://github.com/jemsurfer/wanisabi
max_upload_size
id1121986
size88,987
Jeremy Petch (jemsurfer)

documentation

README

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.

Commit count: 0

cargo fmt