1.0.4 • Published 5 years ago

untis-node v1.0.4

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

untis-node

npm version

Installation

npm install --save untis-node

Features

It is a wrapper for the untis API with many interfaces und a lot of methods to get information from the API

  • Login to the Untis servers
  • fetch Data with multiple methods
  • fetch all Data when successfully logging in
  • Uses Promises

Documentation

The Documentation is here

Example

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

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
})

Todos

  • Program everything
  • Documentation
  • detailed docs
  • Add to NPM
1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago