1 unstable release
0.1.0 | Jan 24, 2021 |
---|
#9 in #notice
12KB
196 lines
KNI-RS
A rust interface for getting notices from KAMAR
This is an iterface for accessing the KAMAR API in rust to retrieve the notices
Example Usage:
use kni_rs::Portal;
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let portal = Portal::new("https://demo.school.kiwi");
let notices = protal.get_notices_today().await?;
println!("Notices: {:?}", notices);
Ok(())
}
lib.rs
:
A crate for using the Kamar api to fetch notices
Sample usage
use kni_rs::Portal;
#[tokio::main]
async fn main() {
let portal = Portal::new("https://demo.school.kiwi/api/api.php");
let notices = portal.get_notices_today().await.unwrap();
println!("{:?}", notices)
}
Dependencies
~6–18MB
~239K SLoC