Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

node-kreta

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-kreta

A Node.js wrapper for KRÉTA!

  • 1.3.1
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

node-kreta

🎒 A Node.js API wrapper for KRÉTA!

Features

  • Get every (or only the latest) evaluation, recorded absence, note or upcoming exam
  • Get your lessons for any week from your timetable
  • Get all cancelled or substituted lessons from your timetable
  • Get your average grades
  • Get all your homework
  • Add or delete your own homework for any lesson
  • Get all the information that is stored about you in KRÉTA

Installation

Using npm:

npm install node-kreta

Example

const Kreta = require("node-kreta");
const kreta = new Kreta();

const instituteCode = "klik000000000";
const username = "12345678912";
const password = "1970-01-01";

(async () => {
    // We store the bearer object which contains the access token and refresh token
    const bearer = await kreta.login(instituteCode, username, password);

    // We pass on the access token which we received earlier
    const absences = await kreta.getAbsences(bearer.accessToken);

    console.log(absences);
})();

Contributors

It wouldn't have been possible without the always up-to-date now archived API documentation, which is was maintained by boapps!

FAQs

Package last updated on 06 Mar 2020

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc