Comparing version 0.0.2 to 0.1.0
@@ -20,9 +20,9 @@ var crypto = require('crypto'); | ||
parts.push('Operation=' + operation); | ||
parts.push('Timestamp=' + (encodeURIComponent((new Date()).toISOString()))); | ||
parts.push('AWSAccessKeyId=' + credentials.awsId); | ||
parts.push('Operation=' + encodeURIComponent(operation)); | ||
parts.push('Timestamp=' + encodeURIComponent((new Date()).toISOString())); | ||
parts.push('AWSAccessKeyId=' + encodeURIComponent(credentials.awsId)); | ||
parts.push('Version=2013-08-01'); | ||
if (credentials.awsTag) { | ||
parts.push('AssociateTag=' + credentials.awsTag); | ||
parts.push('AssociateTag=' + encodeURIComponent(credentials.awsTag)); | ||
} | ||
@@ -32,3 +32,3 @@ | ||
if (query[param]) { | ||
parts.push(param + '=' + query[param]); | ||
parts.push(param + '=' + encodeURIComponent(query[param])); | ||
} | ||
@@ -35,0 +35,0 @@ } |
{ | ||
"name": "amzn-papi", | ||
"version": "0.0.2", | ||
"version": "0.1.0", | ||
"description": "README.md", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
@@ -13,3 +13,3 @@ Amazon Product Advertisment API | ||
Require the libray in your application | ||
Require the library in your application | ||
@@ -28,3 +28,3 @@ `var amazon = require('amzn-papi')` | ||
You can now refer to the Amazon API docs for available methods and available parameters. | ||
You can now refer to the [Amazon API docs](http://docs.aws.amazon.com/AWSECommerceService/latest/DG/CHAP_OperationListAlphabetical.html) for available methods and parameters. | ||
Each method will return a Promise. | ||
@@ -31,0 +31,0 @@ |
9283