2.0.0 • Published 2 years ago

argo.js v2.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

Argo.js

A lightweight Node.js module for Argo / DidUP electronic register 📚

Table Of Contents

Installation

    npm install argo.js

Example

    const { Argo } = require('argo.js');

    const argo = new Argo('SCHOOL CODE', 'USERNAME', 'PASSWORD');

    (async () => {
        const user = await argo.login();
        console.log(`${user.name} - ${user.surname} (${user.id})`);

        argo.getAbsences()
        .then(absences => {
            console.log(`You were absent in school ${absences.length} times`);
        });

        setTimeout(() => {
            argo.logout();
            process.exit();
        }, 3500);
    })();
2.0.0

2 years ago

1.1.0

2 years ago

1.0.0

2 years ago