Crates.io | untis |
lib.rs | untis |
version | 0.3.0 |
source | src |
created_at | 2018-03-17 14:40:52.289619 |
updated_at | 2024-09-11 10:48:18.109091 |
description | Rust library for accessing the Untis API |
homepage | |
repository | https://github.com/luleyleo/untis-rs |
max_upload_size | |
id | 56120 |
size | 78,479 |
Library for accessing the Untis JSON-RPC API.
This client uses the public Untis JSON-RPC API, which only has read-only, limited access.
fn main() -> Result<(), untis::Error> {
let results = untis::schools::search("School Name")?;
let school = match results.first() {
None => {
println!("No school found");
return Ok(());
},
Some(v) => v
};
let mut client = school.client_login("username", "password")?;
let timetable = client.own_timetable_current_week()?;
// profit
Ok(())
}
For more examples, see the examples/
directory.