Ejemplo n.º 1
0
 /**
  * Get Matching Product
  * GetMatchingProduct will return the details (attributes) for the
  * given ASIN.
  *
  * @param mixed $request array of parameters for GetMatchingProduct request or GetMatchingProduct object itself
  *
  * @see GetMatchingProduct
  * @return GetMatchingProductResponse
  *
  * @throws MwsProductsException
  */
 public function getMatchingProduct($request)
 {
     return GetMatchingProductResponse::fromXML($this->_invoke('GetMatchingProduct'));
 }
Ejemplo n.º 2
0
 /**
  * Get Matching Product
  * GetMatchingProduct will return the details (attributes) for the
  * given ASIN.
  *
  * @param mixed $request array of parameters for GetMatchingProduct request or GetMatchingProduct object itself
  *
  * @see GetMatchingProductRequest
  * @return Model\GetMatchingProductResponse
  *
  * @throws MwsProductsException
  */
 public function getMatchingProduct($request)
 {
     if (!$request instanceof Model\GetMatchingProductRequest) {
         $request = new Model\GetMatchingProductRequest($request);
     }
     $parameters = $request->toQueryParameterArray();
     $parameters['Action'] = 'GetMatchingProduct';
     $httpResponse = $this->_invoke($parameters);
     $response = Model\GetMatchingProductResponse::fromXML($httpResponse['ResponseBody']);
     $response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']);
     return $response;
 }