1.0.2 • Published 6 years ago

wilma.js v1.0.2

Weekly downloads
8
License
MIT
Repository
github
Last release
6 years ago

Wilma

NPM

NPM: Wilma.js | Github: supertassu/wilma.js

This is an API wrapper for Wilma's secret API. (yes, there is a json api)

I've only tested this with wilma.edu.hel.fi and it worked just fine.

The data is in raw, undocumented format that you get from the API.

Known limitations & untested features

  • Does not work for guardian accounts.
  • Teacher & staff accounts are untested.

Any PRs to fix these bugs are welcome.

Example usage

The example does not work without changing the values. For some reason, the wilma demo gives me "login failed" with the api so I can't use it.

import wilma from "wilma.js";

wilma("wilma.example.edu", "example.user", "CorrectHorseBatteryStable").then(data => {
    console.log(data);
}).catch(err => {
    console.error(err);
    process.exit(1);
});