Это код, я использую, чтобы получить 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 ... ни одна из этих функций не работает. –