Ruby on rails 4 如何使用Amazon MWS API从Amazon卖家ID获取所有产品
有了这个API get_report_request_list,get_report,我得到的产品响应只是订购的,很多产品仍然没有订购Ruby on rails 4 如何使用Amazon MWS API从Amazon卖家ID获取所有产品,ruby-on-rails-4,amazon-mws,Ruby On Rails 4,Amazon Mws,有了这个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_a
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列表匹配的产品
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个产品的回复
但是,我需要的总产品是上市,订购一个或无序之一
如果有人知道哪个API,我可以使用它来获取所有列出的产品 这是您想要的,看起来您正在使用,但我没有看到您请求的报告,只是您请求了一份报告。请查看此处的报告类型:
并使用RequestReport
请求所需的报告。您可能需要库存报告
或活动列表报告
您不想为此使用产品API,因为这将不会返回您的库存。Hi Vishwas您需要使用Amazon Orders API才能获取所有活动列表。@Keyur感谢您的评论,但通过此评论,我获得了已经订购的产品,我还希望取消订购。order API提供了那些在订购列表中的产品。