/**
  * Get Product Categories For ASIN
  * Gets categories information for a product identified by
  * the MarketplaceId and ASIN.
  *
  * @param mixed $request array of parameters for GetProductCategoriesForASIN request or GetProductCategoriesForASIN object itself
  *
  * @see GetProductCategoriesForASIN
  * @return GetProductCategoriesForASINResponse
  *
  * @throws MwsProductsException
  */
 public function getProductCategoriesForASIN($request)
 {
     return GetProductCategoriesForASINResponse::fromXML($this->_invoke('GetProductCategoriesForASIN'));
 }
Esempio n. 2
0
 /**
  * Get Product Categories For ASIN
  * Gets categories information for a product identified by
  * the MarketplaceId and ASIN.
  *
  * @param mixed $request array of parameters for GetProductCategoriesForASIN request or GetProductCategoriesForASIN object itself
  *
  * @see GetProductCategoriesForASINRequest
  * @return Model\GetProductCategoriesForASINResponse
  *
  * @throws MwsProductsException
  */
 public function getProductCategoriesForASIN($request)
 {
     if (!$request instanceof Model\GetProductCategoriesForASINRequest) {
         $request = new Model\GetProductCategoriesForASINRequest($request);
     }
     $parameters = $request->toQueryParameterArray();
     $parameters['Action'] = 'GetProductCategoriesForASIN';
     $httpResponse = $this->_invoke($parameters);
     $response = Model\GetProductCategoriesForASINResponse::fromXML($httpResponse['ResponseBody']);
     $response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']);
     return $response;
 }