【发布时间】:2017-12-02 15:39:01
【问题描述】:
通过这个 API get_report_request_list, get_report,我得到了只是订购的产品响应,许多产品仍然没有订购。
mws = MWS.new(:aws_access_key_id => access_key,
:secret_access_key => secret_key,
:seller_id => merchant_id,
:marketplace_id => marketplace_id,
:MWS_auth_token => mws_auth_token)
mws = Mws.connect(
merchant: merchant_id,
access: access_key,
secret: secret_key]
)
response = mws.reports.get_report(:report_id => generated_report_id)
有了这个 API list_matching_products
mws = Mws.connect(
merchant: merchant_id,
access: access_key,
secret: secret_key,
MWS_auth_token: mws_auth_token,
)
response = mws.products.list_matching_products(marketplace_id: marketplace_id,query: "1")
我只收到 10 个产品的回复。
但是,我需要列出的全部产品,订购一件或未订购一件。
https://docs.developer.amazonservices.com/en_US/reports/Reports_GetReportRequestList.html http://docs.developer.amazonservices.com/en_IT/products/Products_ListMatchingProducts.html
如果有人知道哪个 API,我可以使用它来获取所有列出的产品。
【问题讨论】:
-
嗨 Vish,您需要使用 Amazon Orders API 来获取所有有效列表。docs.developer.amazonservices.com/en_UK/reports/…
-
@Keyur 感谢您的评论,但是有了这个我得到了那些已经订购的产品,我也想要未订购的。 order API 给出了那些在有序列表中的产品。
标签: ruby-on-rails-4 amazon-mws