The Maple REST API SDK for Node.js.
npm install @maple-app/sdk-node 
The Maple REST API SDK for Node.js is always up-to-date as it's generated using openapi-generator. We've added functionality to the generated code, including webhook payload verification.
- Install
- Usage
- Local development commands
``bash
npm install @maple-app/sdk-node
Usage
`ts
// ./examples/index.tsimport { Configuration, DefaultApi } from "@maple-app/sdk-node";
const configuration = new Configuration({
apiKey: process.env["YOUR_MAPLE_API_KEY"],
basePath: "https://api.maple.com",
});
const api = new DefaultApi(configuration);
const shift = await api.getShift({
shiftId: "3decc3ba-9d75-47b9-86b0-48fef75107f0",
});
console.log(JSON.stringify(shift, null, 2));
`Local development commands
package.json scripts for a complete list of commands.`bash
Install dependencies
npm installTranspile TypeScript to JavaScript
npm run buildGenerate SDK from OpenAPI spec
npm run generate
``