/** * Get Matching Product * GetMatchingProduct will return the details (attributes) for the * given ASIN. * * @param mixed $request array of parameters for MarketplaceWebServiceProducts_Model_GetMatchingProduct request or MarketplaceWebServiceProducts_Model_GetMatchingProduct object itself * @see MarketplaceWebServiceProducts_Model_GetMatchingProduct * @return MarketplaceWebServiceProducts_Model_GetMatchingProductResponse * * @throws Products_Exception */ public function getMatchingProduct($request) { //require_once (dirname(__FILE__) . '/Model/GetMatchingProductResponse.php'); return MarketplaceWebServiceProducts_Model_GetMatchingProductResponse::fromXML($this->_invoke('GetMatchingProduct')); }
/** * Get Matching Product * GetMatchingProduct will return the details (attributes) for the * given ASIN. * * @param mixed $request array of parameters for MarketplaceWebServiceProducts_Model_GetMatchingProduct request or MarketplaceWebServiceProducts_Model_GetMatchingProduct object itself * @see MarketplaceWebServiceProducts_Model_GetMatchingProduct * @return MarketplaceWebServiceProducts_Model_GetMatchingProductResponse * * @throws MarketplaceWebServiceProducts_Exception */ public function getMatchingProduct($request) { return MarketplaceWebServiceProducts_Model_GetMatchingProductResponse::fromXML($this->_invoke('GetMatchingProduct')); }
/** * Get Matching Product * GetMatchingProduct will return the details (attributes) for the * given ASIN. * * @param mixed $request array of parameters for MarketplaceWebServiceProducts_Model_GetMatchingProduct request or MarketplaceWebServiceProducts_Model_GetMatchingProduct object itself * @see MarketplaceWebServiceProducts_Model_GetMatchingProductRequest * @return MarketplaceWebServiceProducts_Model_GetMatchingProductResponse * * @throws MarketplaceWebServiceProducts_Exception */ public function getMatchingProduct($request) { if (!$request instanceof MarketplaceWebServiceProducts_Model_GetMatchingProductRequest) { require_once dirname(__FILE__) . '/Model/GetMatchingProductRequest.php'; $request = new MarketplaceWebServiceProducts_Model_GetMatchingProductRequest($request); } $parameters = $request->toQueryParameterArray(); $parameters['Action'] = 'GetMatchingProduct'; $httpResponse = $this->_invoke($parameters); require_once dirname(__FILE__) . '/Model/GetMatchingProductResponse.php'; $response = MarketplaceWebServiceProducts_Model_GetMatchingProductResponse::fromXML($httpResponse['ResponseBody']); $response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']); return $response; }
/** * Get Matching Product * GetMatchingProduct will return the details (attributes) for the * given ASIN. * * @see http://docs.amazonwebservices.com/${docPath}GetMatchingProduct.html * @param mixed $request array of parameters for MarketplaceWebServiceProducts_Model_GetMatchingProductRequest request * or MarketplaceWebServiceProducts_Model_GetMatchingProductRequest object itself * @see MarketplaceWebServiceProducts_Model_GetMatchingProduct * @return MarketplaceWebServiceProducts_Model_GetMatchingProductResponse MarketplaceWebServiceProducts_Model_GetMatchingProductResponse * * @throws MarketplaceWebServiceProducts_Exception */ public function getMatchingProduct($request) { if (!$request instanceof MarketplaceWebServiceProducts_Model_GetMatchingProductRequest) { require_once 'MarketplaceWebServiceProducts/Model/GetMatchingProductRequest.php'; $request = new MarketplaceWebServiceProducts_Model_GetMatchingProductRequest($request); } require_once 'MarketplaceWebServiceProducts/Model/GetMatchingProductResponse.php'; $httpResponse = $this->_invoke($this->_convertGetMatchingProduct($request)); $response = MarketplaceWebServiceProducts_Model_GetMatchingProductResponse::fromXML($httpResponse['ResponseBody']); $response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']); return $response; }