Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ruby-on-rails-4/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/google-cloud-platform/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails 4 如何使用Amazon MWS API从Amazon卖家ID获取所有产品_Ruby On Rails 4_Amazon Mws - Fatal编程技术网

Ruby on rails 4 如何使用Amazon MWS API从Amazon卖家ID获取所有产品

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

有了这个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列表匹配的产品

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提供了那些在订购列表中的产品。