node-kreta
🎒 A Node.js API wrapper for KRÉTA!
Features
- Get every (or only the latest) evaluation, recorded absence, note or upcoming exam
- Get your lessons for any week from your timetable
- Get all cancelled or substituted lessons from your timetable
- Get your average grades
- Get all your homework
- Add or delete your own homework for any lesson
- Get all the information that is stored about you in KRÉTA
Installation
Using npm:
npm install node-kreta
Example
const Kreta = require("node-kreta");
const kreta = new Kreta();
const instituteCode = "klik000000000";
const username = "12345678912";
const password = "1970-01-01";
(async () => {
const bearer = await kreta.login(instituteCode, username, password);
const absences = await kreta.getAbsences(bearer.accessToken);
console.log(absences);
})();
Contributors
It wouldn't have been possible without the always up-to-date now archived API documentation, which is was maintained by boapps!