Get the events (the timetable) for a specific course from TimeEdit as a JavaScript object.
A little manual work is required to get the automation going, but it's one time only.
yarn add @juhosa/time-edit-api
const TimeEdit = require("@juhosa/time-edit-api");
// The constructor requires a base url (your school/org has its own)
const te = new TimeEdit(`https://cloud.timeedit.net/samk/web/public/`);
// Query the events for a specific course
te.getCourseEvents(courseId).then(results => {
console.log(results.reservations)
});
Use the below code snippet to get the course id when you are in the 'Implementations´ schedules' page (paste it in the console).
document.getElementById('linksdata').attributes['data-searchidsenc'].nodeValue
Want to see a feature get added? Submit a PR!
MIT