@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
npm install @maple-app/sdk-node
export MAPLE_API_KEY=[YOUR_MAPLE_API_KEY]
Usage
import { 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
See package.json
scripts
for a complete list of commands.
npm install
npm run build
npm run generate