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
Not every events information is embedded in HTML page, which is unfortunate for us. However, there are some calls that we can make for fetching more details regarding the event. An example is the course name, which in the HTML is an ugly course identifier and academic year, e.g. FEUP-EIC0085_EBE0235-2018/2019-META-2S 🤢. If you use the calls we could fetch the course name, e.g. Laboratório de Bases de Dados e Aplicações Web 😄. Other things like a more detailed description are available in the response.
There are at least two APIs we can use (both using POST methods)
Well, there's a global JavaScript variable, which is an object and has the property sesskey which holds the session key value. It's as simple as this: M.cfg.sesskey
How to use core_calendar_get_calendar_monthly_view ?
Still investigating... 👀
How to use core_calendar_get_calendar_event_by_id ?
Still investigating... 👀
The text was updated successfully, but these errors were encountered:
Not every events information is embedded in HTML page, which is unfortunate for us. However, there are some calls that we can make for fetching more details regarding the event. An example is the course name, which in the HTML is an ugly course identifier and academic year, e.g. FEUP-EIC0085_EBE0235-2018/2019-META-2S 🤢. If you use the calls we could fetch the course name, e.g. Laboratório de Bases de Dados e Aplicações Web 😄. Other things like a more detailed description are available in the response.
There are at least two APIs we can use (both using
POST
methods)https://moodle.up.pt/lib/ajax/service.php?sesskey=?&info=core_calendar_get_calendar_monthly_view
https://moodle.up.pt/lib/ajax/service.php?sesskey=?&info=core_calendar_get_calendar_event_by_id
How can we get the session key?
Well, there's a global JavaScript variable, which is an object and has the property
sesskey
which holds the session key value. It's as simple as this:M.cfg.sesskey
How to use
core_calendar_get_calendar_monthly_view
?Still investigating... 👀
How to use
core_calendar_get_calendar_event_by_id
?Still investigating... 👀
The text was updated successfully, but these errors were encountered: