New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

@juhosa/time-edit-api

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@juhosa/time-edit-api

Get implementation/course timetable as a JS object from TimeEdit.

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

The TimeEditAPI

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.

Installing

yarn add @juhosa/time-edit-api

Usage

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

Contribution

Want to see a feature get added? Submit a PR!

License

MIT

Keywords

timeedit

FAQs

Package last updated on 10 Aug 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts