Skip to content

doodlemoonch/pwinty

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Travis CI status for doodlemoonch/pwinty

Pwinty api for Node.js

Pwinty API for Node.js is a library for communicating with the Pwinty API. It uses standard callbacks, you can easily wrap in a promises/generator library of your choosing.

Installation

$ npm install pwinty

Quick Start

Init pwinty with your api credentials and host (sandbox/live):

var pwinty = require('../lib/pwinty')('merchantId', 'apiKey', 'https://sandbox.pwinty.com:443');

Then access the pwinty methods:

Create an order

var orderParams = {};
pwinty.createOrder(orderParams, function (err, order) {

    var photo = {
        type: "4x4",
        url: "photourl",
        copies: "2",
        sizing: "ShrinkToExactFit",
        priceToUser: "450"
    };

    pwinty.addPhotoToOrder(order.id, photo, function (err, order) {
        console.log('photo added');
    });
})

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published