sendle-node
v3.0.0
Published
Node.js library for the Sendle API
Downloads
970
Maintainers
Readme
Sendle Node.js library
In order to use this library, you need to have an account on https://www.sendle.com/. 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
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
});
See the docs for usage reference.
Development
- Clone this repository
- Install dependencies using
yarn install
ornpm install
- Build the module using
yarn build
ornpm run build
- Start development server using
yarn start
ornpm run start