New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

apa-client

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

apa-client

An Amazon Product Advertising API client.

  • 0.1.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-33.33%
Maintainers
1
Weekly downloads
 
Created
Source

#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 dependency
var apa = require('apa-client');

// Create a client
var client = apa.createClient({
	"awsAccessKeyId" : "", // your aws access key id here
	"awsSecretKey" : "", // your secret key here
	"associateTag" : "" // your associate tag here
});

// Switch locale (default endpoint is ecs.amazonaws.com)
client.switchLocale('fr'); // new endpoint is ecs.amazonaws.fr

// Execute 'ItemSearch' operation with few arguments
client.execute('ItemSearch',{
			    SearchIndex : 'All',
			    Keywords : 'TV Plasma',
			    ResponseGroup : 'OfferFull,Images,ItemAttributes,SalesRank,EditorialReview',
			    Availability : 'Available'
			},function(err,data){
				if(err)  return console.error(err);
				console.log(JSON.stringify(data));
			});

##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

Keywords

FAQs

Package last updated on 25 Sep 2012

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc