paddle-sdk-dplnk

2.2.2 • Public • Published

Paddle.com Node.js SDK

NPM version

Welcome to the Paddle.com Node.js SDK documentation.

Installation

Install the SDK module using npm:

$ npm install paddle-sdk-dplnk

or using yarn:

$ yarn add paddle-sdk-dplnk

Usage

Using Promise:

const PaddleSDK = require('paddle-sdk-dplnk');

const client = new PaddleSDK('your-vendor-id-here', 'your-auth-code-here');

client.getProducts()
  .then(console.log)
  .then(() => client.getProductPlans(123))
  .then(console.log);

Using async/await:

const PaddleSDK = require('paddle-sdk-dplnk');

async function run() {
  const client = new PaddleSDK('your-vendor-id-here', 'your-auth-code-here');

  const products = await client.getProducts();
  console.log(products);

	const plans = await client.getProductPlans(123);
  console.log(plans);
}

run();

Documentation

See the JSDoc markdown documentation in Documentation.md.

Change log

The change log can be found here: CHANGELOG.md.

ToDo

  • Rewrite to typescript.
  • Add missing endpoint

Authors and license

Author: Dmitry Dergunov.

Forked from: Valentin Agachi.

MIT License, see the included License.md file.

Package Sidebar

Install

npm i paddle-sdk-dplnk

Weekly Downloads

2

Version

2.2.2

License

MIT

Unpacked Size

20.8 kB

Total Files

6

Last publish

Collaborators

  • dergunovd