File tree Expand file tree Collapse file tree 5 files changed +58
-6
lines changed
examples/javaScript/reports Expand file tree Collapse file tree 5 files changed +58
-6
lines changed Original file line number Diff line number Diff 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+ ```
8992Originally by [Bhushankumar Lilapara](https://github.com/bhushankumarl) (bhushankumar.lilapara@gmail.com).
93+ ```
9094
95+ ## Examples
9196### Feeds
9297
9398#### Submit Feed
Original file line number Diff line number Diff line change @@ -5,12 +5,11 @@ var accessSecret = process.env.AWS_SECRET_ACCESS_KEY || 'YOUR_SECRET';
55
66var 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-
138var 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' ,
Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ var accessSecret = process.env.AWS_SECRET_ACCESS_KEY || 'YOUR_SECRET';
66var amazonMws = require ( '../../../lib/amazon-mws' ) ( accessKey , accessSecret ) ;
77
88var reportRequest = function ( ) {
9-
109 amazonMws . reports . search ( {
1110 'Version' : '2009-01-01' ,
1211 'Action' : 'GetReportList' ,
Original file line number Diff line number Diff line change 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 ( ) ;
Original file line number Diff line number Diff line change 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 ( ) ;
You can’t perform that action at this time.
0 commit comments