从亚马逊的产品API多重优惠亚马逊、产品、API

2023-09-11 11:13:40 作者:傷℃春天

我最近一直在与亚马逊的产品API,和我有任何人在那里有经验使用它的问题。是否有可能使用responseGroups之一来获得在亚马逊市场上所有的优惠?

I've been working recently with the Amazon Products API, and I had a question for anyone out there with experience using it. Is it possible using one of the responseGroups to get a full listing of all offers in the Amazon marketplace?

例如,一个产品可能有37报价在市场上,但在每个API调用我完成,我似乎从来没有能够得到以外的任何Amazon.com的价格和成本最低的市场价格项目。

For example, one product might have 37 offers in the marketplace, but in every API call I've performed, I never seem to be able to get anything other than the Amazon.com price and the price of the lowest cost marketplace item.

有没有办法让所有37报价?

Is there any way to get all 37 offers?

推荐答案

是的,这是可能的。我用的是ItemLookup操作,并与我使用ResponseGroupOfferFull。这将返回至10的优惠。你必须循环,以获得下一组提供的,直到你有他们所有。

Yes, this is possible. I use the ItemLookup operation and with that I use the ResponseGroup "OfferFull". That will return up to 10 offers. You'll have to loop to get the next set of offers until you've got them all.

在优惠对象(内部ItemLooku presponse,你回来),你会看到一个名为TotalOfferPages,将告诉你有多少10报价页面属性。只要把一个检查循环内对这个值和积累的优惠到一个集合。

In the Offers object (inside ItemLookupResponse that you get back), you'll see a property called "TotalOfferPages" that will tell you how many pages of 10 offers. Just put a check inside a loop for this value and accumulate the Offers into a collection.

亚马逊的文档:

http://docs.amazonwebservices.com/AWSECommerceService/latest/DG/

如果您使用C#和希望使用WCF,这样说的:

If you use C# and want to use WCF, read this:

HTTP://flyingpies.word$p$pss.com / 2009/08/01/17 /

希望这会有所帮助, 斯科特

Hope this helps, Scott