Skip to content
This repository has been archived by the owner on Jun 24, 2021. It is now read-only.

KoenvdStroom/Magister-API-key

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

It is recommended you don't use this one, in favour of magister-openid or magister as this one uses puppeteer which is very inefficient.

Magister-API-Key

NPM

Details

Since there is no way to get an API key the normal way, I've decided to reverse engineer the Magister API keys.

Usage

First import the project

const magister = require('magister-api-key');

To get a key, use the function magister.get('url', 'username', 'password', <false>). This is an async function. For url use your Magister URL. For username and password use your Magister username and password. This will return the your API key. To use the API, I usually check in the network tab of the Chrome devtools what requests are made by Magister itself, and following those URL's you can get the data.

If you set debug mode to true, puppeteer will launch without headless mode, so you can see what is going on with the browser.

Disclaimer

This repository is not affiliated with SchoolMaster's Magister in any way.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published