/**
  * List Customers
  * Returns a (potentially
  *         paginated) list of customer records based on the criteria in the
  *         request. The result will be at most a single page of results
  *         plus a next token that can be used to obtain the next page of
  *         results, if any.
  *
  * @param mixed $request array of parameters for MWSCustomerService_Model_ListCustomers request or MWSCustomerService_Model_ListCustomers object itself
  * @see MWSCustomerService_Model_ListCustomers
  * @return MWSCustomerService_Model_ListCustomersResponse
  *
  * @throws Customer_Exception
  */
 public function listCustomers($request)
 {
     //require_once (dirname(__FILE__) . '/Model/ListCustomersResponse.php');
     return MWSCustomerService_Model_ListCustomersResponse::fromXML($this->_invoke('ListCustomers'));
 }
Example #2
0
 /**
  * List Customers
  * Returns a (potentially
  *         paginated) list of customer records based on the criteria in the
  *         request. The result will be at most a single page of results
  *         plus a next token that can be used to obtain the next page of
  *         results, if any.
  *
  * @param mixed $request array of parameters for MWSCustomerService_Model_ListCustomers request or MWSCustomerService_Model_ListCustomers object itself
  * @see MWSCustomerService_Model_ListCustomersRequest
  * @return MWSCustomerService_Model_ListCustomersResponse
  *
  * @throws MWSCustomerService_Exception
  */
 public function listCustomers($request)
 {
     if (!$request instanceof MWSCustomerService_Model_ListCustomersRequest) {
         require_once dirname(__FILE__) . '/Model/ListCustomersRequest.php';
         $request = new MWSCustomerService_Model_ListCustomersRequest($request);
     }
     $parameters = $request->toQueryParameterArray();
     $parameters['Action'] = 'ListCustomers';
     $httpResponse = $this->_invoke($parameters);
     require_once dirname(__FILE__) . '/Model/ListCustomersResponse.php';
     $response = MWSCustomerService_Model_ListCustomersResponse::fromXML($httpResponse['ResponseBody']);
     $response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']);
     return $response;
 }