Skip to content

Norbiros/MobidziennikSDK

Repository files navigation

Mobidziennik SDK

npm License

TypeScript web scraping SDK for Polish e-gradebook MobiDziennik.

Warning

I don't recommend enabling 2factor authentication on your account, as it will break the SDK. We will try to support it in future!

Usage

var MobidziennikSDK = require("./index").MobidziennikSDK;

const client = new MobidziennikSDK('<school_id>');
client.authorize('<email>', '<password>').then((el) => {
    // Messages
    mobi.messages.getMessages().then((messages) => {})
    mobi.messages.getMessage('<message_id>').then((el) => {});
    
    // Library
    mobi.library.getBooks().then((books) => {})
  
    // Calendar
    mobi.calendar.getCalendarEntries().then((entry) => {})
});