如何使用亚马逊MWS API从亚马逊卖家ID获取所有产品

时间:2016-06-02 10:02:17

标签: 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_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,我可以用来获取所有列出的产品。

1 个答案:

答案 0 :(得分:2)

Reports API是您想要的,看起来就像您使用的那样,但我没有看到您要求的报告,只是您要求提交报告。在这里查看报告类型:

https://docs.developer.amazonservices.com/en_US/reports/Reports_ReportType.html

并使用RequestReport来请求您想要的报告。您可能需要Inventory ReportActive Listings Report

您不希望为此使用产品API,但不会返回您的广告资源。

相关问题