2.0.0 • Published 2 years ago
argo.js v2.0.0
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);
})();