1.2.5 • Published 6 years ago

web-untis-anonymous-api v1.2.5

Weekly downloads
-
License
ISC
Repository
-
Last release
6 years ago

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: SchoolId

ElementId/ClassId: ElementId

1.2.5

6 years ago

1.2.4

6 years ago

1.2.3

6 years ago

1.2.2

6 years ago

1.2.1

6 years ago