What is this?
An API wrapper with mostly proper typings and tests for ClassCharts. Looking for a more complete guide? Look at the docs.
Installation
or in your Cargo.toml
[]
...
= "latest"
Usage
There is also a examples/basic.rs as a reference.
To create a ClassCharts Student Client and get their info.
use Client;
let mut client = create.await.unwrap;
let student_info = client.get_student_info.await.unwrap;
println!;
To view the current student's homework:
let homework = client.get_homeworks.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_info
They will all return a Result<SuccessResponse, ErrorResponse>.
For more information, please look at the docs.
Developing
Credits
- I used the type definitions from classchartsapi/classcharts-api-js to create
structs/enums.