Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with the returns of getTimetableForWeek #100

Open
bhasim1 opened this issue Mar 30, 2023 · 4 comments
Open

Problem with the returns of getTimetableForWeek #100

bhasim1 opened this issue Mar 30, 2023 · 4 comments

Comments

@bhasim1
Copy link

bhasim1 commented Mar 30, 2023

In the docs (https://webuntis.noim.me/classes/WebUntisAnonymousAuth.html#getTimetableForWeek) is says:

Optional formatId: number = 1

set to 1 to include teachers, 2 omits the teachers in elements response

But I get no teachers in the return.
Can I just use the getTimetableForRange, pass in the range of the week and get a correct response from there?

@luwol03
Copy link
Contributor

luwol03 commented Mar 30, 2023

Do you see teachers when using webuntis.com in your browser? This extra method was implemented, because some schools prevented students from getting teacher information via official API, but show teachers on webuntis.com. So this method uses what webuntis.com uses in the background instead of the API. So yes, if the other method works for you, I would prefere that with the according range.

@bhasim1
Copy link
Author

bhasim1 commented Mar 30, 2023

So I see no teacher in the browser, but with getTimetableForToday

@bhasim1
Copy link
Author

bhasim1 commented Mar 30, 2023

So I have tested it and it works with getTimetableForRange. So the problem is that my school denied access to getTimetableForWeek, but everything else works normal? nice

@luwol03
Copy link
Contributor

luwol03 commented Apr 1, 2023

So I see no teacher in the browser, but with getTimetableForToday

That's why you dont get the teachers via the week method. This week method exactly emulates what happens on webuntis.com in the back.

So I have tested it and it works with getTimetableForRange. So the problem is that my school denied access to getTimetableForWeek, but everything else works normal? nice

Yeah, seems like your school is doing the opposite of my 😆 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants