0.15.1 • Published 9 months ago
@maple-app/sdk-node v0.15.1
@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.15.1
9 months ago
0.15.0
12 months ago
0.12.0
1 year ago
0.11.0
1 year ago
0.10.0
1 year ago
0.9.0
1 year ago
0.8.0
2 years ago
0.7.0
2 years ago
0.6.0
2 years ago
0.5.0
2 years ago
0.4.0
2 years ago
0.3.11
2 years ago
0.3.10
2 years ago
0.3.9
2 years ago
0.3.8
2 years ago
0.3.7
2 years ago
0.3.6
2 years ago
0.3.5
2 years ago
0.3.4
2 years ago
0.3.3
2 years ago
0.3.2
2 years ago
0.3.1
2 years ago
0.3.0
2 years ago
0.2.2
2 years ago
0.2.1
2 years ago
0.2.0
2 years ago
0.1.0
2 years ago