/** * Get Product Categories For ASIN * Gets categories information for a product identified by * the MarketplaceId and ASIN. * * @param mixed $request array of parameters for MarketplaceWebServiceProducts_Model_GetProductCategoriesForASIN request or MarketplaceWebServiceProducts_Model_GetProductCategoriesForASIN object itself * @see MarketplaceWebServiceProducts_Model_GetProductCategoriesForASIN * @return MarketplaceWebServiceProducts_Model_GetProductCategoriesForASINResponse * * @throws Products_Exception */ public function getProductCategoriesForASIN($request) { //require_once (dirname(__FILE__) . '/Model/GetProductCategoriesForASINResponse.php'); return MarketplaceWebServiceProducts_Model_GetProductCategoriesForASINResponse::fromXML($this->_invoke('GetProductCategoriesForASIN')); }
/** * Get Product Categories For ASIN * Gets categories information for a product identified by * the MarketplaceId and ASIN. * * @param mixed $request array of parameters for MarketplaceWebServiceProducts_Model_GetProductCategoriesForASIN request or MarketplaceWebServiceProducts_Model_GetProductCategoriesForASIN object itself * @see MarketplaceWebServiceProducts_Model_GetProductCategoriesForASIN * @return MarketplaceWebServiceProducts_Model_GetProductCategoriesForASINResponse * * @throws MarketplaceWebServiceProducts_Exception */ public function getProductCategoriesForASIN($request) { return MarketplaceWebServiceProducts_Model_GetProductCategoriesForASINResponse::fromXML($this->_invoke('GetProductCategoriesForASIN')); }
/** * Get Product Categories For ASIN * Gets categories information for a product identified by * the MarketplaceId and ASIN. * * @param mixed $request array of parameters for MarketplaceWebServiceProducts_Model_GetProductCategoriesForASIN request or MarketplaceWebServiceProducts_Model_GetProductCategoriesForASIN object itself * @see MarketplaceWebServiceProducts_Model_GetProductCategoriesForASINRequest * @return MarketplaceWebServiceProducts_Model_GetProductCategoriesForASINResponse * * @throws MarketplaceWebServiceProducts_Exception */ public function getProductCategoriesForASIN($request) { if (!$request instanceof MarketplaceWebServiceProducts_Model_GetProductCategoriesForASINRequest) { require_once dirname(__FILE__) . '/Model/GetProductCategoriesForASINRequest.php'; $request = new MarketplaceWebServiceProducts_Model_GetProductCategoriesForASINRequest($request); } $parameters = $request->toQueryParameterArray(); $parameters['Action'] = 'GetProductCategoriesForASIN'; $httpResponse = $this->_invoke($parameters); require_once dirname(__FILE__) . '/Model/GetProductCategoriesForASINResponse.php'; $response = MarketplaceWebServiceProducts_Model_GetProductCategoriesForASINResponse::fromXML($httpResponse['ResponseBody']); $response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']); return $response; }
/** * Get Product Categories For ASIN * Gets categories information for a product identified by * the MarketplaceId and ASIN. * * @see http://docs.amazonwebservices.com/${docPath}GetProductCategoriesForASIN.html * @param mixed $request array of parameters for MarketplaceWebServiceProducts_Model_GetProductCategoriesForASINRequest request * or MarketplaceWebServiceProducts_Model_GetProductCategoriesForASINRequest object itself * @see MarketplaceWebServiceProducts_Model_GetProductCategoriesForASIN * @return MarketplaceWebServiceProducts_Model_GetProductCategoriesForASINResponse MarketplaceWebServiceProducts_Model_GetProductCategoriesForASINResponse * * @throws MarketplaceWebServiceProducts_Exception */ public function getProductCategoriesForASIN($request) { if (!$request instanceof MarketplaceWebServiceProducts_Model_GetProductCategoriesForASINRequest) { require_once 'MarketplaceWebServiceProducts/Model/GetProductCategoriesForASINRequest.php'; $request = new MarketplaceWebServiceProducts_Model_GetProductCategoriesForASINRequest($request); } require_once 'MarketplaceWebServiceProducts/Model/GetProductCategoriesForASINResponse.php'; $httpResponse = $this->_invoke($this->_convertGetProductCategoriesForASIN($request)); $response = MarketplaceWebServiceProducts_Model_GetProductCategoriesForASINResponse::fromXML($httpResponse['ResponseBody']); $response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']); return $response; }