0
我在亞馬遜MWS的產品API中苦苦掙扎。我正在使用亞馬遜暫存器,所以實施應該沒問題。我只是不確定我的API使用情況。MWS:無法訪問指定的市場
如果我使用報告API來獲取庫存報告,我會在co.uk marketplace上提供包含產品ASIN和SKU的產品列表。但是,當我試圖獲得有關使用產品API的產品的更多詳細信息時,對於請求ASIN或SKU的所有功能,我「無法訪問給定的市場」錯誤。
有人有這方面的經驗嗎?
我在亞馬遜MWS的產品API中苦苦掙扎。我正在使用亞馬遜暫存器,所以實施應該沒問題。我只是不確定我的API使用情況。MWS:無法訪問指定的市場
如果我使用報告API來獲取庫存報告,我會在co.uk marketplace上提供包含產品ASIN和SKU的產品列表。但是,當我試圖獲得有關使用產品API的產品的更多詳細信息時,對於請求ASIN或SKU的所有功能,我「無法訪問給定的市場」錯誤。
有人有這方面的經驗嗎?
這是我用得到LowestOfferListingForSKU代碼和它的作品完美的嘗試:
$service = new MarketplaceWebServiceProducts_Client($this->aws_access_key, $this->aws_secret_access_key, $this->application_name, $this->application_version, $this->config);
$request = new MarketplaceWebServiceProducts_Model_GetLowestOfferListingsForSKURequest();
$request->setSellerId($this->seller_id);
$request->setMarketplaceId($this->marketplace_id);
$request->setItemCondition("New");
$request->setExcludeMe(TRUE);//Excluding our self
$sku_list = new MarketplaceWebServiceProducts_Model_SellerSKUListType();
$skus = array("SKU1","SKU2");
$sku_list->setSellerSKU($skus);
$request->setSellerSKUList($sku_list);
$response = $service->getLowestOfferListingsForSKU($request);
$dom = new DOMDocument();
$dom->loadXML($response->toXML());
$dom->preserveWhiteSpace = false;
$dom->formatOutput = true;
$xml_data = $dom->saveXML();
$dom->loadXML($xml_data);
$otherOfferXml = simplexml_load_string($xml_data);
而這下面的例子是LowestOfferListingForASIN:
$service = new MarketplaceWebServiceProducts_Client($this->aws_access_key, $this->aws_secret_access_key, $this->application_name, $this->application_version, $this->config);
$request = new MarketplaceWebServiceProducts_Model_GetLowestOfferListingsForASINRequest();
$request->setSellerId($this->seller_id);
$request->setMarketplaceId($this->marketplace_id);
$request->setItemCondition("New");
$request->setExcludeMe(TRUE);//Excluding our self
$asin_list = new MarketplaceWebServiceProducts_Model_ASINListType();
$asins = array("ASIN1","ASIN2");
$asin_list->setASIN($asins);
$request->setASINList($asin_list);
$response = $service->getLowestOfferListingsForASIN($request);
$dom = new DOMDocument();
$dom->loadXML($response->toXML());
$dom->preserveWhiteSpace = false;
$dom->formatOutput = true;
$xml_data = $dom->saveXML();
$dom->loadXML($xml_data);
$otherOfferXml = simplexml_load_string($xml_data);
什麼樣的產品API操作中你想怎麼辦? –
GetCompetitivePricingForSKU/ASIN,GetLowestOfferListingsForSKU/ASIN,GetLowestPricedOffersForSKU/ASIN,GetMyPriceForSKU/ASIN ...這些都不起作用。 –