-
Notifications
You must be signed in to change notification settings - Fork 1
Home
Kamil Baraniak edited this page Oct 2, 2023
·
4 revisions
const { LibrusAPI } = require("librus-api-rewrited");
const librusApi = new LibrusAPI();
const { LibrusAPI } = require('../api');
async function main() {
try {
const librusApi = new LibrusAPI();
const tokenCreated = await librusApi.mkToken('synergia_login', 'synergia_password');
console.log('Token Created:', tokenCreated);
if(tokenCreated){
librusApi.getLessons()
librusApi.getAPI("SystemData")
}
} catch (error) {
console.error('Error:', error);
}
}
main();