Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 551 Bytes

README.md

File metadata and controls

27 lines (19 loc) · 551 Bytes

Zermelo.ts

Zermelo API wrapper for Typescript & NodeJS

Installation

yarn add zermelo.ts # Or npm install zermelo.ts

Example

const { Zermelo } = require("zermelo.ts");
const asyncFunction = async () => {
  const accessToken = await Zermelo.getAccessToken("schoolnaam", "koppel_code");
  const ZermeloAPI = Zermelo.getAPI("schoolnaam", accessToken);
  const userInfo = await ZermeloAPI.users.get();
  console.log(userInfo);
};

asyncFunction();

Licensing

The code in this project is licensed under MIT license.