web-untis-anonymous-api
v1.2.5
Published
An API for webuntis that doesn't require any authentication
Downloads
27
Readme
An easy-to-use API for webuntis that doesn't require any authentication.
to get started:
const untis = require('web-untis-anonymous-api');
// Screenshots below on how to find them
const schedule = new untis.Schedule({Element/ClassId}, "{SchoolId/Name}");
schedule.update((err, lessons) => {
for(const lesson of lessons) {
/**
* All available properties and functions
* var startTime = lesson.startTime;
* var endTime = lesson.endTime;
* var lessonId = lesson.lessonId
* var periods = lesson.periods;
* var cellState = lesson.getCellState();
* var Lesson = lesson.getLesson();
* var teacher = lesson.getTeacher();
* var oldLesson = lesson.getOldLesson();
* var oldTeacher = lesson.getOldTeacher();
*/
console.log(`${lesson.startTime} - ${lesson.endTime} | ${lesson.getLesson()} - ${lesson.getTeacher()}`)
}
})
SchoolId/name:
ElementId/ClassId: