/** * Get Matching Product For Id * GetMatchingProduct will return the details (attributes) for the * given Identifier list. Identifer type can be one of [SKU|ASIN|UPC|EAN|ISBN|GTIN|JAN] * * @param mixed $request array of parameters for GetMatchingProductForId request or GetMatchingProductForId object itself * * @see GetMatchingProductForId * @return GetMatchingProductForIdResponse * * @throws MwsProductsException */ public function getMatchingProductForId($request) { return GetMatchingProductForIdResponse::fromXML($this->_invoke('GetMatchingProductForId')); }
/** * Get Matching Product For Id * GetMatchingProduct will return the details (attributes) for the * given Identifier list. Identifer type can be one of [SKU|ASIN|UPC|EAN|ISBN|GTIN|JAN] * * @param mixed $request array of parameters for GetMatchingProductForId request or GetMatchingProductForId object itself * * @see GetMatchingProductForIdRequest * @return Model\GetMatchingProductForIdResponse * * @throws MwsProductsException */ public function getMatchingProductForId($request) { if (!$request instanceof Model\GetMatchingProductForIdRequest) { $request = new Model\GetMatchingProductForIdRequest($request); } $parameters = $request->toQueryParameterArray(); $parameters['Action'] = 'GetMatchingProductForId'; $httpResponse = $this->_invoke($parameters); $response = Model\GetMatchingProductForIdResponse::fromXML($httpResponse['ResponseBody']); $response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']); return $response; }