Exemplo n.º 1
0
 /**
  * List Recommendations
  * Retrieving first batch of recommendations.
  *
  * @param mixed $request array of parameters for MWSRecommendationsSectionService_Model_ListRecommendations request or MWSRecommendationsSectionService_Model_ListRecommendations object itself
  * @see MWSRecommendationsSectionService_Model_ListRecommendations
  * @return MWSRecommendationsSectionService_Model_ListRecommendationsResponse
  *
  * @throws MWSRecommendationsSectionService_Exception
  */
 public function listRecommendations($request)
 {
     require_once dirname(__FILE__) . '/Model/ListRecommendationsResponse.php';
     return MWSRecommendationsSectionService_Model_ListRecommendationsResponse::fromXML($this->_invoke('ListRecommendations'));
 }
Exemplo n.º 2
0
 /**
  * List Recommendations
  * Retrieving first batch of recommendations.
  *
  * @param mixed $request array of parameters for MWSRecommendationsSectionService_Model_ListRecommendations request or MWSRecommendationsSectionService_Model_ListRecommendations object itself
  * @see MWSRecommendationsSectionService_Model_ListRecommendationsRequest
  * @return MWSRecommendationsSectionService_Model_ListRecommendationsResponse
  *
  * @throws MWSRecommendationsSectionService_Exception
  */
 public function listRecommendations($request)
 {
     if (!$request instanceof MWSRecommendationsSectionService_Model_ListRecommendationsRequest) {
         require_once dirname(__FILE__) . '/Model/ListRecommendationsRequest.php';
         $request = new MWSRecommendationsSectionService_Model_ListRecommendationsRequest($request);
     }
     $parameters = $request->toQueryParameterArray();
     $parameters['Action'] = 'ListRecommendations';
     $httpResponse = $this->_invoke($parameters);
     require_once dirname(__FILE__) . '/Model/ListRecommendationsResponse.php';
     $response = MWSRecommendationsSectionService_Model_ListRecommendationsResponse::fromXML($httpResponse['ResponseBody']);
     $response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']);
     return $response;
 }