/** * Get Product Categories For SKU * Gets categories information for a product identified by * the SellerId and SKU. * * @param mixed $request array of parameters for GetProductCategoriesForSKU request or GetProductCategoriesForSKU object itself * * @see GetProductCategoriesForSKU * @return GetProductCategoriesForSKUResponse * * @throws MwsProductsException */ public function getProductCategoriesForSKU($request) { return 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 GetProductCategoriesForSKU request or GetProductCategoriesForSKU object itself * * @see GetProductCategoriesForSKURequest * @return Model\GetProductCategoriesForSKUResponse * * @throws MwsProductsException */ public function getProductCategoriesForSKU($request) { if (!$request instanceof Model\GetProductCategoriesForSKURequest) { $request = new Model\GetProductCategoriesForSKURequest($request); } $parameters = $request->toQueryParameterArray(); $parameters['Action'] = 'GetProductCategoriesForSKU'; $httpResponse = $this->_invoke($parameters); $response = Model\GetProductCategoriesForSKUResponse::fromXML($httpResponse['ResponseBody']); $response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']); return $response; }