pwinty

A pwinty api library for Node.JS

npm install pwinty
6 downloads in the last week
6 downloads in the last month

Pwinty api for Node.js

Pwinty API for Node.js is a library for communicating with the Pwinty API.

Installation

$ npm install pwinty

Features

  • Plain JavaScript
  • Lightweight, only one dependency (restler)

Quick Start

First, add the module to your project:

var Pwinty = require('pwinty');

Second, init pwinty with your api credentials:

var pwinty = new Pwinty(cfg.pwinty.useSandbox, cfg.pwinty.merchantId, cfg.pwinty.apiKey);

Then access the pwinty methods:

pwinty.getOrder(1234).on('complete', function (order) {
    console.log(order);
});
npm loves you