1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
//! Library for accessing the [Untis](https://www.untis.at) JSON-RPC API.
//!
//! The core of this crate is the `untis::Client` struct. You can log in using `untis::Client::login()`.
//!
//! ## API
//! This client uses the public Untis JSON-RPC API, which only has read-only, limited access.
//!
//! ## Examples
//! ```rust
//! 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.
pub use Client;
pub use *;
pub use Error;
pub use *;