@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
Usage
import { Configuration, DefaultApi } from "@maple-app/sdk-node";
const configuration = new Configuration({
apiKey: "API_KEY",
basePath: "https://mact-api-prod.herokuapp.com/api",
});
const api = new DefaultApi(configuration);
const shift = await api.shiftsIntegrationControllerFindShift({
shiftId: 1633,
externalFacilityId: "1",
});
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