Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@maple-app/sdk-node

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@maple-app/sdk-node

The Maple REST API SDK for Node.js.

  • 0.3.5
  • npm
  • Socket score

Version published
Weekly downloads
101
increased by18.82%
Maintainers
1
Weekly downloads
 
Created
Source

@maple-app/sdk-node

Version Standard README compliant

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://mact-api-prod.herokuapp.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

FAQs

Package last updated on 17 Aug 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc