node-webuntis
node-webuntis copied to clipboard
webuntis api for node.js
The code I used: TimeTableEntity = e.TimeTableEntity; w.getTimetable(new TimeTableEntity(1, 5)).then(data => console.log(data)); The error I got: (node:18444) UnhandledPromiseRejectionWarning: Error: [object Object] at C:\Users\paede\OneDrive\Desktop\Schule\sommersemprojekt\node_modules\untis-api\webuntis.js:183:23 at processTicksAndRejections (internal/process/task_queues.js:95:5) (Use `node --trace-warnings ...`...
I have just tried your first example and it gives me the error: "No sessionId returned" ```javascript const w = require("untis-api"); w.connect("myUsername", "myPassword", "K175055", "webuntis.schulon.org") .then(() => { console.log(w) }).catch(error...
I tried to login with my Untis-Username, but my lastname contains special characters, so i wasn't able to log in. Error message: { jsonrpc: '2.0', id: null, error: { code:...
Is the a way how I can get the timetable of my week through the api, so it returns an object like ```json [{ "subject": "Physics", "startTime": 820, "endTime": 910,...