/** * Get Competitive Pricing For SKU * Gets competitive pricing and related information for a product identified by * the SellerId and SKU. * * @param mixed $request array of parameters for GetCompetitivePricingForSKU request or GetCompetitivePricingForSKU object itself * * @see GetCompetitivePricingForSKU * @return GetCompetitivePricingForSKUResponse * * @throws MwsProductsException */ public function getCompetitivePricingForSKU($request) { return GetCompetitivePricingForSKUResponse::fromXML($this->_invoke('GetCompetitivePricingForSKU')); }
/** * Get Competitive Pricing For SKU * Gets competitive pricing and related information for a product identified by * the SellerId and SKU. * * @param mixed $request array of parameters for GetCompetitivePricingForSKU request or GetCompetitivePricingForSKU object itself * * @see GetCompetitivePricingForSKURequest * @return Model\GetCompetitivePricingForSKUResponse * * @throws MwsProductsException */ public function getCompetitivePricingForSKU($request) { if (!$request instanceof Model\GetCompetitivePricingForSKURequest) { $request = new Model\GetCompetitivePricingForSKURequest($request); } $parameters = $request->toQueryParameterArray(); $parameters['Action'] = 'GetCompetitivePricingForSKU'; $httpResponse = $this->_invoke($parameters); $response = Model\GetCompetitivePricingForSKUResponse::fromXML($httpResponse['ResponseBody']); $response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']); return $response; }