/** * List Matching Products * ListMatchingProducts can be used to * find products that match the given criteria. * * @param mixed $request array of parameters for ListMatchingProducts request or ListMatchingProducts object itself * * @see ListMatchingProducts * @return ListMatchingProductsResponse * * @throws MwsProductsException */ public function listMatchingProducts($request) { return ListMatchingProductsResponse::fromXML($this->_invoke('ListMatchingProducts')); }
/** * List Matching Products * ListMatchingProducts can be used to * find products that match the given criteria. * * @param mixed $request array of parameters for ListMatchingProducts request or ListMatchingProducts object itself * * @see ListMatchingProductsRequest * @return Model\ListMatchingProductsResponse * * @throws MwsProductsException */ public function listMatchingProducts($request) { if (!$request instanceof Model\ListMatchingProductsRequest) { $request = new Model\ListMatchingProductsRequest($request); } $parameters = $request->toQueryParameterArray(); $parameters['Action'] = 'ListMatchingProducts'; $httpResponse = $this->_invoke($parameters); $response = Model\ListMatchingProductsResponse::fromXML($httpResponse['ResponseBody']); $response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']); return $response; }