es-api is a wrapper for Enriching Students API, written in TypeScript.
You can view the docs here
Use NPM to install es-api.
npm i es-api
Also view examples
import {EsAPI} from './client'
const api = new EsAPI()
api.status.on('ready', () => {
api.schoolMessage()
.then(message => {
console.log(message);
})
})
api.login({email: 'EMAIL', password: 'PASS'})
You can also use your token!
import {EsAPI} from './client'
const api = new EsAPI()
api.status.on('ready', () => {
api.schoolMessage()
.then(message => {
console.log(message);
})
})
api.login({token: 'token'})
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
Generated using TypeDoc