Socket
Socket
Sign inDemoInstall

paddle-sdk

Package Overview
Dependencies
44
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    paddle-sdk

The Paddle.com Node.js SDK


Version published
Maintainers
1
Created

Changelog

Source

1.2.1 (2019-06-18)

Bug Fixes

  • Throw on error responses with 2xx status code (28f07da)

<a name="1.2.0"></a>

Readme

Source

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.

Keywords

FAQs

Last updated on 18 Jun 2019

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc