Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

aws-prod-adv-signature

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aws-prod-adv-signature

This is a signature creator for the AWS Product Advertising REST API. Dont try to use this signature method for other AWS API's!!!

  • 0.1.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

AWS-Product-Advertising-API-Signature

This is a signature creator for the AWS Product Advertising REST API. Dont try to use this signature method for other AWS API's!!! It won't work.

Usage

var http = require("http");
var generator = require("aws-prod-adv-signature")("YOUR ACCESS KEY", "YOUR SECRET KEY");

var url = "http://webservices.amazon.com/onca/xml?Service=AWSECommerceService&Operation=ItemLookup&ItemId=0679722769&ResponseGroup=ItemAttributes,Offers,Images,Reviews";

var object = generator.sign_url(url);

//object.url => signed url
//object.signature => signature

http.get(object.url, function(res) {
    
    getBody(res, function(data) {
        
        console.log(data);
        
    });
    
});


function getBody(res, callback) {

    var data = "";

    res.on("data", function(chunk) {
        data += chunk;
    });

    res.on("end", function() {
        callback(data);
    });

}

Keywords

FAQs

Package last updated on 13 Oct 2013

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