简体   繁体   English

如何使用node.js通过ListMatchingProducts API访问Amazon mws中的10多个产品

[英]How to access more than 10 products in Amazon mws via ListMatchingProducts API using node.js

I am using node.js(Meteor) for calling Amazon MWS ListMatchingProducts API for getting all products of my seller account . 我正在使用node.js(Meteor)调用亚马逊MWS ListMatchingProducts API来获取我的卖家帐户的所有产品 Its running sucessfully and i am getting the response , but as the documentation said that only ten(10) products are returned at one time . 它运行成功,我得到了响应,但正如文档所说,一次只返回十(10)个产品 So i just want to know how we get products more than 10 . 所以我只想知道我们如何获得超过10个产品。 In the doc Amazon also said that you can submit NextToken with a "ByNextToken" operation to request additional pages.But i am not getting any nextToken or related to that nextToken field on my response .So how do i get the nextToken from there side or how can i get more than 10 products from that API. 在文档中,亚马逊还说你可以通过“ByNextToken”操作提交NextToken以请求额外的页面。但是我没有得到任何nextToken或与我的响应中的nextToken字段相关 。那么如何从那里获得nextToken或者我如何从该API获得10多种产品。 As i also check on one post they said that we need to use Reports for that but i want to use ListMatchingProducts API for that and want result more than 10. 因为我也检查了一个帖子,他们说我们需要使用Reports,但我想使用ListMatchingProducts API,并希望结果超过10。

Please provide me any suggestion or guidance how can i achieve that. 请给我任何建议或指导我如何实现这一目标。

Any help would be appriciated Thanks 任何帮助将是appriciated谢谢

You want to call the Reports API using the Inventory Report report type or one of the other Listing Report types . 您希望使用“ Inventory Report报告类型或其他“ 列表报告”类型之一来调用Reports API That is the way to go. 这是要走的路。 The ListMatchingProducts operation of the Products API is meant to be a search, based on a query. Products APIListMatchingProducts操作是基于查询的搜索。 Yes, it only lists ten products but it does not give you a NextToken like some of the other operations. 是的,它只列出了十个产品,但它没有像其他一些操作那样给你一个NextToken。 Knowing your Report Type and Marketplace ID, you can submit those to the Reports API with your credentials and get back all of your products all at once and there is no searching involved. 了解您的报告类型和市场ID后,您可以使用您的凭据将这些提交到Reports API,并一次性取回所有产品,并且不涉及任何搜索。

What I would also suggest is to use the Amazon Scratchpad to play around with your operations to make sure you get what you expect, then plug it into your node.js project. 我还建议使用Amazon Scratchpad来操作您的操作以确保获得您期望的内容,然后将其插入您的node.js项目。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM