This is a NodeJS Wrapper for the JSON RPC WebUntis API.
The Documentation is available at https://noim.me/WebUntis/
In case you need the Untis API Spec (pdf) where those JSON responses are explained, you need to directly email Untis and ask. I am (legally) not allowed to publish it.
const WebUntis = ;const untis ='school''username''password''xyz.webuntis.com';untis;
QR Code Login
const WebUntisLib = ;// The result of the scanned QR Codeconst QRCodeData ='untis://setschool?url=[...]&school=[...]&user=[...]&key=[...]&schoolNumber=[...]';const untis = QRCodeData;untis;
const WebUntisLib = ;const secret = 'NL04FGY4FSY5';const untis ='school''username'secret'xyz.webuntis.com';untis;
Only if your school supports public access.
const WebUntisLib = ;const untis ='school''xyz.webuntis.com';untis;
yarn add webuntis# Ornpm i webuntis --save
I am not affiliated with Untis GmbH. Use this at your own risk.
Copyright 2019 Nils Bergmann
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.