Skip to content

Commit 170a4dc

Browse files
author
Bhushankumar L
authored
Merge pull request #67 from bhushankumarl/development
Development
2 parents 1761da3 + a009f8e commit 170a4dc

File tree

5 files changed

+58
-6
lines changed

5 files changed

+58
-6
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,13 @@ Reference : http://docs.developer.amazonservices.com/en_CA/dev_guide/DG_Throttli
8686
"x-mws-timestamp": "2017-12-08T07:52:15.567Z"
8787
}
8888
```
89+
## Do you need an expert?
90+
Are you finding a developer for your word class product? If yes, please contact here. [Submit your project request here.](https://goo.gl/forms/UofdG5GY5iHMoUWg2)
91+
```
8992
Originally by [Bhushankumar Lilapara](https://github.com/bhushankumarl) (bhushankumar.lilapara@gmail.com).
93+
```
9094

95+
## Examples
9196
### Feeds
9297

9398
#### Submit Feed

examples/javaScript/reports/getReport.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,11 @@ var accessSecret = process.env.AWS_SECRET_ACCESS_KEY || 'YOUR_SECRET';
55

66
var amazonMws = require('../../../lib/amazon-mws')(accessKey, accessSecret);
77

8-
/**
9-
* This will not provide you Throttling details in Header.
10-
* Amazon MWS itself not providing Throttling detail in GetReport call.
11-
*/
12-
138
var reportRequest = function () {
9+
/**
10+
* This will not provide you Throttling details in Header.
11+
* Amazon MWS itself not providing Throttling detail in GetReport call.
12+
*/
1413
amazonMws.reports.search({
1514
'Version': '2009-01-01',
1615
'Action': 'GetReport',

examples/javaScript/reports/getReportList.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ var accessSecret = process.env.AWS_SECRET_ACCESS_KEY || 'YOUR_SECRET';
66
var amazonMws = require('../../../lib/amazon-mws')(accessKey, accessSecret);
77

88
var reportRequest = function () {
9-
109
amazonMws.reports.search({
1110
'Version': '2009-01-01',
1211
'Action': 'GetReportList',
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
'use strict';
2+
3+
var accessKey = process.env.AWS_ACCESS_KEY_ID || 'YOUR_KEY';
4+
var accessSecret = process.env.AWS_SECRET_ACCESS_KEY || 'YOUR_SECRET';
5+
6+
var amazonMws = require('../../../lib/amazon-mws')(accessKey, accessSecret);
7+
8+
var reportRequest = function () {
9+
var ReportRequestId = '10101010XXX';
10+
amazonMws.reports.search({
11+
'Version': '2009-01-01',
12+
'Action': 'GetReportRequestList',
13+
'SellerId': 'SELLER_ID',
14+
'MWSAuthToken': 'MWS_AUTH_TOKEN',
15+
'ReportRequestIdList.Id.1': ReportRequestId
16+
}, function (error, response) {
17+
if (error) {
18+
console.log('error ', error);
19+
return;
20+
}
21+
console.log('response', response);
22+
});
23+
};
24+
25+
reportRequest();
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
'use strict';
2+
3+
var accessKey = process.env.AWS_ACCESS_KEY_ID || 'YOUR_KEY';
4+
var accessSecret = process.env.AWS_SECRET_ACCESS_KEY || 'YOUR_SECRET';
5+
6+
var amazonMws = require('../../../lib/amazon-mws')(accessKey, accessSecret);
7+
8+
var reportRequest = function () {
9+
amazonMws.reports.submit({
10+
'Version': '2009-01-01',
11+
'Action': 'RequestReport',
12+
'SellerId': 'SELLER_ID',
13+
'MWSAuthToken': 'MWS_AUTH_TOKEN',
14+
'ReportType': '_GET_MERCHANT_LISTINGS_ALL_DATA_'
15+
}, function (error, response) {
16+
if (error) {
17+
console.log('error ', error);
18+
return;
19+
}
20+
console.log('response', response);
21+
});
22+
};
23+
24+
reportRequest();

0 commit comments

Comments
 (0)