| Crates.io | classcharts |
| lib.rs | classcharts |
| version | 1.0.5 |
| created_at | 2023-09-24 15:08:32.640157+00 |
| updated_at | 2023-09-24 19:01:48.650663+00 |
| description | Unoffical classcharts library for rust. |
| homepage | |
| repository | https://github.com/veloii/classcharts-rs/ |
| max_upload_size | |
| id | 981971 |
| size | 152,125 |
An unoffical Student ClassCharts API library, built with Rust.
Explore the docs »
Report Bug
·
crates.io
·
Request Feature
An API wrapper with mostly proper typings and tests for ClassCharts. Looking for a more complete guide? Look at the docs.
cargo add classcharts
or in your Cargo.toml
[dependencies]
...
classcharts = "latest"
There is also a examples/basic.rs as a reference.
To create a ClassCharts Student Client and get their info.
use classcharts::Client;
let mut client = Client::create("your access code", "your date of birth (DD/MM/YYYY)", None).await.unwrap();
let student_info = client.get_student_info().await.unwrap();
println!("{:?}", student_info);
To view the current student's homework:
let homework = client.get_homeworks(None).await.unwrap();
For a complete list of ClassCharts methods the Client exposes:
get_activityget_full_activityget_announcementsget_attendanceget_badgesget_behaviourget_detentionsget_homeworksget_lessonsget_pupilfieldsget_rewardspurchase_rewardget_student_infoThey will all return a Result<SuccessResponse, ErrorResponse>.
For more information, please look at the docs.
git clone git@github.com:veloii/classcharts-rs.git
cd classcharts-rs
cargo test
structs/enums.