/** * Get Product Categories For SKU * Gets categories information for a product identified by * the SellerId and SKU. * * @param mixed $request array of parameters for MarketplaceWebServiceProducts_Model_GetProductCategoriesForSKU request or MarketplaceWebServiceProducts_Model_GetProductCategoriesForSKU object itself * @see MarketplaceWebServiceProducts_Model_GetProductCategoriesForSKU * @return MarketplaceWebServiceProducts_Model_GetProductCategoriesForSKUResponse * * @throws Products_Exception */ public function getProductCategoriesForSKU($request) { //require_once (dirname(__FILE__) . '/Model/GetProductCategoriesForSKUResponse.php'); return MarketplaceWebServiceProducts_Model_GetProductCategoriesForSKUResponse::fromXML($this->_invoke('GetProductCategoriesForSKU')); }
/** * Get Product Categories For SKU * Gets categories information for a product identified by * the SellerId and SKU. * * @param mixed $request array of parameters for MarketplaceWebServiceProducts_Model_GetProductCategoriesForSKU request or MarketplaceWebServiceProducts_Model_GetProductCategoriesForSKU object itself * @see MarketplaceWebServiceProducts_Model_GetProductCategoriesForSKU * @return MarketplaceWebServiceProducts_Model_GetProductCategoriesForSKUResponse * * @throws MarketplaceWebServiceProducts_Exception */ public function getProductCategoriesForSKU($request) { return MarketplaceWebServiceProducts_Model_GetProductCategoriesForSKUResponse::fromXML($this->_invoke('GetProductCategoriesForSKU')); }
/** * Get Product Categories For SKU * Gets categories information for a product identified by * the SellerId and SKU. * * @param mixed $request array of parameters for MarketplaceWebServiceProducts_Model_GetProductCategoriesForSKU request or MarketplaceWebServiceProducts_Model_GetProductCategoriesForSKU object itself * @see MarketplaceWebServiceProducts_Model_GetProductCategoriesForSKURequest * @return MarketplaceWebServiceProducts_Model_GetProductCategoriesForSKUResponse * * @throws MarketplaceWebServiceProducts_Exception */ public function getProductCategoriesForSKU($request) { if (!$request instanceof MarketplaceWebServiceProducts_Model_GetProductCategoriesForSKURequest) { require_once dirname(__FILE__) . '/Model/GetProductCategoriesForSKURequest.php'; $request = new MarketplaceWebServiceProducts_Model_GetProductCategoriesForSKURequest($request); } $parameters = $request->toQueryParameterArray(); $parameters['Action'] = 'GetProductCategoriesForSKU'; $httpResponse = $this->_invoke($parameters); require_once dirname(__FILE__) . '/Model/GetProductCategoriesForSKUResponse.php'; $response = MarketplaceWebServiceProducts_Model_GetProductCategoriesForSKUResponse::fromXML($httpResponse['ResponseBody']); $response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']); return $response; }
/** * Get Product Categories For SKU * Gets categories information for a product identified by * the SellerId and SKU. * * @see http://docs.amazonwebservices.com/${docPath}GetProductCategoriesForSKU.html * @param mixed $request array of parameters for MarketplaceWebServiceProducts_Model_GetProductCategoriesForSKURequest request * or MarketplaceWebServiceProducts_Model_GetProductCategoriesForSKURequest object itself * @see MarketplaceWebServiceProducts_Model_GetProductCategoriesForSKU * @return MarketplaceWebServiceProducts_Model_GetProductCategoriesForSKUResponse MarketplaceWebServiceProducts_Model_GetProductCategoriesForSKUResponse * * @throws MarketplaceWebServiceProducts_Exception */ public function getProductCategoriesForSKU($request) { if (!$request instanceof MarketplaceWebServiceProducts_Model_GetProductCategoriesForSKURequest) { require_once 'MarketplaceWebServiceProducts/Model/GetProductCategoriesForSKURequest.php'; $request = new MarketplaceWebServiceProducts_Model_GetProductCategoriesForSKURequest($request); } require_once 'MarketplaceWebServiceProducts/Model/GetProductCategoriesForSKUResponse.php'; $httpResponse = $this->_invoke($this->_convertGetProductCategoriesForSKU($request)); $response = MarketplaceWebServiceProducts_Model_GetProductCategoriesForSKUResponse::fromXML($httpResponse['ResponseBody']); $response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']); return $response; }