1
早上,ASIN产品API列表?
我想通过一个亚马逊ASIN的清单,所以我可以使用MWS API处理它们。
List<string> prodASINs = dc.aboProducts.Select(a => a.asin).ToList();
var count = prodASINs.Count();
//Loop through passing 10 at a time to AWS
for (var i = 0; i < count; i++)
{
var prodASINToSend = prodASINs.Skip(i * 10).Take(10).ToList();
//Send to AWS
MarketplaceWebServiceProductsConfig config = new MarketplaceWebServiceProductsConfig();
config.ServiceURL = productsURL;
MarketplaceWebServiceProducts.MarketplaceWebServiceProductsClient service = new MarketplaceWebServiceProductsClient(appname, version, accesskeyID, secretkey, config);
GetLowestOfferListingsForASINRequest request = new GetLowestOfferListingsForASINRequest();
request.SellerId = merchantID;
request.MarketplaceId = marketids[0];
request.ItemCondition = condition;
request.ASINList.ASIN = prodASINToSend;
但是request.ASINList.ASIN = prodASINToSend;
说“对象引用未设置为对象的实例”。然而,它是通过所需的List<string>
prodASINToSend
任何人都可以在这一点上请他们点亮一下吗?
干杯现在全部排序 – thatuxguy 2012-07-19 14:25:00