简体   繁体   English

PHP Amazon MWS API请求参数

[英]PHP Amazon MWS API request Params

I want to try the Amazon MWS PHP Example : 我想尝试Amazon MWS PHP示例:

https://github.com/coopTilleuls/amazon-mws-products/blob/master/src/MarketplaceWebServiceProducts/Samples/GetMatchingProductSample.php https://github.com/coopTilleuls/amazon-mws-products/blob/master/src/MarketplaceWebServiceProducts/Samples/GetMatchingProductSample.php

But I see nothing where I can put my ASIN List? 但是我什么都看不到我的ASIN清单?

And where can I see the APPLICATION_NAME and APPLICATION_VERSION in the seller central? 在卖家中心的哪里可以看到APPLICATION_NAME和APPLICATION_VERSION? I cant find it. 我找不到。

But I see nothing where I can put my ASIN List? 但是我什么都看不到我的ASIN清单?

Yeah, Amazon's documentation is pretty horrible. 是的,Amazon的文档非常糟糕。 Here's a code snippet that might help. 这是一个可能有用的代码段。 I recommend digging into the MarketplaceWebServiceProducts_Model_ASINListType object to learn more about it. 我建议深入研究MarketplaceWebServiceProducts_Model_ASINListType对象以了解有关它的更多信息。

$request = new MarketplaceWebServiceProducts_Model_GetMatchingProductRequest();
$request->setSellerId(MERCHANT_ID);
$request->setMarketplaceId(MARKETPLACE_ID);
$asinListObj = new MarketplaceWebServiceProducts_Model_ASINListType();
$asinListObj->setASIN(ASIN_VALUE_HERE);
$request->setASINList($asinListObj);
invokeGetMatchingProduct($service, $request);

Another route entirely is to use some other service that'll handle all this mess for you like MegaMWS.com. 完全另一种方法是使用其他服务,例如MegaMWS.com,它将为您处理所有此类混乱情况。 In that system, you just throw an ASIN at its API and it'll return product and offer details. 在该系统中,您只需向ASIN抛出其API,它将返回产品并提供详细信息。 It's geared more towards books than anything else, but it's another option. 它比其他任何东西更适合书籍,但这是另一种选择。

Try this, directly from Amazon, it will be more helpful: 直接从亚马逊尝试此操作,它将更加有用:

http://docs.developer.amazonservices.com/en_US/products/Products_GetMatchingProduct.html http://docs.developer.amazonservices.com/zh_CN/products/Products_GetMatchingProduct.html

APPLICATION_NAME and APPLICATION_VERSION can be anything, it's meant for identifying the application that you are writing. APPLICATION_NAME和APPLICATION_VERSION可以是任何东西,它用于标识您正在编写的应用程序。

There is also a PHP Library you can download that should be helpful: https://developer.amazonservices.com/doc/products/products/v20111001/php.html/143-9515869-7910138 您还可以下载一个PHP库,该库应该会有所帮助: https : //developer.amazonservices.com/doc/products/products/v20111001/php.html/143-9515869-7910138

ASINList is part of your request as stated in the developer docs above. 如上面的开发人员文档所述,ASINList是您请求的一部分。 Sorry, I'm not a PHP programmer, or I'd give you some code... 抱歉,我不是PHP程序员,或者给您一些代码...

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

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