Quick start

In order to use this library, you need to have an account on https://www.sendle.com/ or their Sandbox version. After registering, you will need the application credentials for your app.

Supported platforms

This SDK supports Node.js version 14+.

We test the library against a selection of Node.js versions which we update over time. Please refer to main.yml for the set of versions that are currently tested with CI.

If you find any compatibility issues, please raise an issue in the repository.

Installation

You need to be running at least Node.js 14 to use this library.

yarn add sendle-node
npm install sendle-node

Create a client

import { SendleClient } from 'sendle-node';

const client = new SendleClient({
  sendleId: 'yourSendleId',
  apiKey: 'yourApiKey',
  sandbox: true, // default to false
  gotOptions: {}, // See https://github.com/sindresorhus/got#api
});
Edit this page on GitHub Updated at Sat, Mar 25, 2023