Skip to content

Latest commit

 

History

History
27 lines (20 loc) · 761 Bytes

README.md

File metadata and controls

27 lines (20 loc) · 761 Bytes

Node.js api gateway to the Amazon Giftcard On Demand Web service

Install

npm install agcod

Configuration

Create a directory config in the root of your app. And add a development.json, sandbox.json and production.json in it that looks like config/example.json in this repo.

Usage

const Client = require('agcod')
const client = new Client()

client.createGiftCard('NA', 123, 'USD', (error, result) => {
  console.log('client.createGiftCard response', error, result)
})

Tests

During tests requests are intercepted by nock and responds with a desired response code and contents.

Other clients