| Crates.io | wanisabi |
| lib.rs | wanisabi |
| version | 0.1.6 |
| created_at | 2024-01-31 17:12:42.284004+00 |
| updated_at | 2024-02-14 16:54:50.112242+00 |
| description | Rust binding for the wanikani API: a fork of wanikani-rs |
| homepage | https://github.com/jemsurfer/wanisabi |
| repository | https://github.com/jemsurfer/wanisabi |
| max_upload_size | |
| id | 1121986 |
| size | 88,987 |
An API wrapper for the wanikani API written in rust.
#[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.