Package Exports
- magister-api
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (magister-api) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Magister API
An API for the Magister school software which implements the new login system!
Quick Start
Install the package:
npm install magister-apiUse the package in Node:
const { default: Magister } = require('magister-api')
const magister = new Magister('schoolName', 'username', 'password')
magister.authenticate()
.then(session => {
session.getProfileInfo()
.then(info => {
console.log('Yay, this is me:', info)
})
}).catch(error => {
throw new Error(error)
})Documentation
For documentation, please look at the JSDocs
Release History
0.1.1 - Added Messages
0.1.0 - First types!
- Able to fetch Appointments
- Able to fetch Group data
- Able to fetch Person data
- Better documentation
- Wrote tests
0.0.1 - Initial release
- Able to connect and authenticate with the Magister private API
Meta
idiidk – @idiidka
Distributed under the MIT license. See LICENSE for more information.
Contributing
- Fork it (https://github.com/idiidk/magister-api/fork)
- Create your feature branch (
git checkout -b feature/fooBar) - Commit your changes (
git commit -am 'Add some fooBar') - Push to the branch (
git push origin feature/fooBar) - Create a new Pull Request