Skip to content

JavaScript library for interacting with the Aurion API, a product from Auriga an ERP system for higher education institutions.

Notifications You must be signed in to change notification settings

revoverflow/aurion.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Aurion.js

Aurion.js is a JavaScript library for interacting with the Aurion API, a product from Auriga an ERP system for higher education institutions.

This library is using the mobile API of Aurion, which is a REST API instead of the Java Faces used by the web interface. Some features are not available in the mobile API, but it is more stable and faster than the web interface.

Usage

Here is an example of how to use the library to get the timetable of a user.

const { AurionClient } = require('aurion');

// Configure the client with the mobile API URL and your tokens
const client = new AurionClient({
    baseUrl: 'https://aurion.example.com/mobile',
    /*
    tokens: { // You can specify the tokens here or use the login method
        normal: 'YOUR_NORMAL_TOKEN', 
        comptage: 'YOUR_COMPTAGE_TOKEN'
    }
    */
});

// Login with your credentials
client.login('john.doe@example.com', 'password')
    .then(async () => {
        // Get the timetable between 2024-01-01 and 2024-01-02
        const timetable = await client.getTimetable(new Date('2024-01-01'), new Date('2024-01-02'));
        console.log(timetable);
    })

Features

  • Authentication
  • Timetable
  • Grades
  • Absences

About

JavaScript library for interacting with the Aurion API, a product from Auriga an ERP system for higher education institutions.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published