apa-client - a node.js Amazon product advertising API client
Install
npm install apa-client
Features
- All operations with
Client#execute()
- Switch the locale with
Client#swithLocale()
- Handle gracefully errors from the XMLParser, http request and specific APA API errors by always passing an
Error
has first argument in the callback.
Usage
// Load dependencyvar apa = ; // Create a clientvar client = apa; // Switch locale (default endpoint is ecs.amazonaws.com)client; // new endpoint is ecs.amazonaws.fr // Execute 'ItemSearch' operation with few argumentsclient;
Test
Before running the tests create a file config-private.json
containing your own credentials to create the client.
npm test
Licence
(The MIT License) Copyright 2012 HipSnip Limited