You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hm, it could be a new optional field which you need to explicit require in https://github.com/SchoolUtils/WebUntis/blob/master/index.js#L304 or it may simply not be available for the "public" API. You can try to find the query from which this field originates and add a new API path to this module. But without access to a Untis instance, which uses this field, there's nothing I can do.
Activity
TheNoim commentedon Aug 23, 2022
Yes, they are all optional. There are two possible options:
Here you can find all available properties: https://github.com/SchoolUtils/WebUntis/blob/master/index.d.ts#L45
Properties with
?are optional and may not be available.devskar commentedon Aug 23, 2022
But on the webapp I have access to the text so I should be able to access the information via api as well right?
TheNoim commentedon Aug 23, 2022
No, not really. Untis introduced a set of private APIs. Can you show an example of the available text? Maybe we implemented the private API.
devskar commentedon Aug 23, 2022

I am trying to access this content, but the retrieved data looks like this:{ id: 1212411, date: 20220822, startTime: 1135, endTime: 1305, kl: [ <> ], te: [ <> ], su: [ { id: 294, name: 'Sport', longname: 'Sport' } ], ro: [ <> ], lsnumber: 87100, activityType: 'Unterricht' }and all text values are undefined:
{ bkText: undefined, subsText: undefined, infoText: undefined, remarkText: undefined }TheNoim commentedon Aug 23, 2022
Hm, it could be a new optional field which you need to explicit require in https://github.com/SchoolUtils/WebUntis/blob/master/index.js#L304 or it may simply not be available for the "public" API. You can try to find the query from which this field originates and add a new API path to this module. But without access to a Untis instance, which uses this field, there's nothing I can do.