0.12.0 • Published 11 days ago
@maple-app/sdk-node v0.12.0
@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 your Maple REST API key
export MAPLE_API_KEY=[YOUR_MAPLE_API_KEY]
Usage
// ./examples/index.ts
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.
# Install dependencies
npm install
# Transpile TypeScript to JavaScript
npm run build
# Generate SDK from OpenAPI spec
npm run generate
0.12.0
11 days ago
0.11.0
2 months ago
0.10.0
3 months ago
0.9.0
4 months ago
0.8.0
5 months ago
0.7.0
7 months ago
0.6.0
7 months ago
0.5.0
7 months ago
0.4.0
7 months ago
0.3.11
7 months ago
0.3.10
8 months ago
0.3.9
8 months ago
0.3.8
9 months ago
0.3.7
9 months ago
0.3.6
9 months ago
0.3.5
9 months ago
0.3.4
9 months ago
0.3.3
9 months ago
0.3.2
9 months ago
0.3.1
9 months ago
0.3.0
9 months ago
0.2.2
9 months ago
0.2.1
9 months ago
0.2.0
9 months ago
0.1.0
9 months ago