Skip to content

Node.js api for the Amazon Gift Codes On Demand Web Services

Notifications You must be signed in to change notification settings

leadstoloyals/node-agcod

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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