Пример #1
0
 /**
  * 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 MarketplaceWebServiceProducts_Model_GetMatchingProductForId request or MarketplaceWebServiceProducts_Model_GetMatchingProductForId object itself
  * @see MarketplaceWebServiceProducts_Model_GetMatchingProductForIdRequest
  * @return MarketplaceWebServiceProducts_Model_GetMatchingProductForIdResponse
  *
  * @throws MarketplaceWebServiceProducts_Exception
  */
 public function getMatchingProductForId($request)
 {
     if (!$request instanceof MarketplaceWebServiceProducts_Model_GetMatchingProductForIdRequest) {
         require_once dirname(__FILE__) . '/Model/GetMatchingProductForIdRequest.php';
         $request = new MarketplaceWebServiceProducts_Model_GetMatchingProductForIdRequest($request);
     }
     $parameters = $request->toQueryParameterArray();
     $parameters['Action'] = 'GetMatchingProductForId';
     $httpResponse = $this->_invoke($parameters);
     require_once dirname(__FILE__) . '/Model/GetMatchingProductForIdResponse.php';
     $response = MarketplaceWebServiceProducts_Model_GetMatchingProductForIdResponse::fromXML($httpResponse['ResponseBody']);
     $response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']);
     return $response;
 }
Пример #2
0
 /**
  * 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 MarketplaceWebServiceProducts_Model_GetMatchingProductForId request or MarketplaceWebServiceProducts_Model_GetMatchingProductForId object itself
  * @see MarketplaceWebServiceProducts_Model_GetMatchingProductForId
  * @return MarketplaceWebServiceProducts_Model_GetMatchingProductForIdResponse
  *
  * @throws Products_Exception
  */
 public function getMatchingProductForId($request)
 {
     //require_once (dirname(__FILE__) . '/Model/GetMatchingProductForIdResponse.php');
     return MarketplaceWebServiceProducts_Model_GetMatchingProductForIdResponse::fromXML($this->_invoke('GetMatchingProductForId'));
 }
Пример #3
0
 /**
  * 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 MarketplaceWebServiceProducts_Model_GetMatchingProductForId request or MarketplaceWebServiceProducts_Model_GetMatchingProductForId object itself
  * @see MarketplaceWebServiceProducts_Model_GetMatchingProductForId
  * @return MarketplaceWebServiceProducts_Model_GetMatchingProductForIdResponse
  *
  * @throws MarketplaceWebServiceProducts_Exception
  */
 public function getMatchingProductForId($request)
 {
     return MarketplaceWebServiceProducts_Model_GetMatchingProductForIdResponse::fromXML($this->_invoke('GetMatchingProductForId'));
 }