snaphy-paddle
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

Paddle.com Node.js SDK

Travis branch NPM version Dependencies

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

Installation

Install the SDK module using npm:

$ npm install paddle-sdk

or using yarn:

$ yarn add paddle-sdk

Usage

Using Promise:

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

const client = new PaddleSDK('your-vendor-id-here', 'your-unique-api-key-here');

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

Using async/await:

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

async function run() {
  const client = new PaddleSDK('your-vendor-id-here', 'your-unique-api-key-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.

Authors and license

Author: Valentin Agachi.

MIT License, see the included License.md file.

/snaphy-paddle/

    Package Sidebar

    Install

    npm i snaphy-paddle

    Weekly Downloads

    1

    Version

    1.0.2

    License

    MIT

    Unpacked Size

    26.1 kB

    Total Files

    8

    Last publish

    Collaborators

    • robinskumar73