wanisabi-model

Crates.iowanisabi-model
lib.rswanisabi-model
version0.1.2
sourcesrc
created_at2024-01-31 17:09:32.76075
updated_at2024-02-09 12:13:38.000511
descriptionModel for wanisabi
homepagehttps://github.com/jemsurfer/wanisabi
repositoryhttps://github.com/jemsurfer/wanisabi/tree/main/wanisabi-model
max_upload_size
id1121981
size13,345
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