1.0.2 • Published 2 years ago

mobi-api v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Mobidziennik API

Mobidziennik API for JavaScript & TypeScript

Usage

Initialize client

import MobiApi from "./MobiApi";

const mobiApi = new MobiApi("https://<school-name>.mobidziennik.pl");

Async function

const initializeApi = async () => {
    await mobiApi.signIn("<email>", "<password>");
}

// in some function
await initializeApi();
// ...

Synchronous function

mobiApi.signIn("<email>", "<password>").then(() => {
    // ...
});

Get received messages

const messages = await mobiApi.getRecievedMessages();