Have opinions about JavaScript? We want to hear them. Take the 2018 JavaScript Ecosystem Survey »

gopaywin-api-client

0.2.0 • Public • Published

GoPayWin API Client for Node.js

This branch is under active development. For more information please visit: www.gopaywinpay.com

@gopaywin on Twitter GoPayWin on NPM

Installation

npm install --save gopaywin-api-client

Usage

The following call will fetch all orders for the API keys' owner. Be sure to pass configuration data as shown.

var api = require('gopaywin-api-client');
var configuration = {
  "keys": {
    "publishable_key" : "...",
    "private_key"     : "..."
  },
  "api_version": "0.1",
  "api_host": "https://sandbox.fpa.bz/"
}

api.get("orders", configuration)
  .then(function(response){
    console.log(response.body.orders);
  })
  .catch(function(error){
    console.log(error);
  });

Links

Keywords

none

install

npm i gopaywin-api-client

Downloadsweekly downloads

12

version

0.2.0

license

none

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
  • avatar
Report a vulnerability