npm install --save untis-node
It is a wrapper for the untis API with many interfaces und a lot of methods to get information from the API
First you have to get your school id and your server. You can find your school id and your server by going to webuntis.com and then searching for your school. After being redirected to your school web page you can see your school id and your server by looking at the link: Example link: https://mese.webuntis.com/WebUntis/?school=htbla_kaindorf#/basic/main the server is the word before ".webuntis.com", so in this example: mese the school is the word after "?school=", so in this example: htbla_kaindorf
[Example GIF][example.gif]
Javascript:
const untis = require("untis-node");
untis.login({
username: "a username here",
password: "a password here",
school: "your school",
server: "your server"
}).then(data => {
//do your stuff here
});
Typescript:
import {login, Config} from "untis-node";
const config: Config = {
username: "a username here",
password: "a password here",
school: "your school",
server: "your server"
};
login(config).then(data => {
// do your stuff
})
Generated using TypeDoc