Пример #1
0
 /**
  * Get Customers By Customer Id
  * Returns customer information for
  *         one or more customers, given a seller-directed customer ID.
  *         There is a maximum number of customer IDs supported per request.
  *         See service documentation for that limit.
  *
  * @param mixed $request array of parameters for MWSCustomerService_Model_GetCustomersByCustomerId request or MWSCustomerService_Model_GetCustomersByCustomerId object itself
  * @see MWSCustomerService_Model_GetCustomersByCustomerIdRequest
  * @return MWSCustomerService_Model_GetCustomersByCustomerIdResponse
  *
  * @throws MWSCustomerService_Exception
  */
 public function getCustomersByCustomerId($request)
 {
     if (!$request instanceof MWSCustomerService_Model_GetCustomersByCustomerIdRequest) {
         require_once dirname(__FILE__) . '/Model/GetCustomersByCustomerIdRequest.php';
         $request = new MWSCustomerService_Model_GetCustomersByCustomerIdRequest($request);
     }
     $parameters = $request->toQueryParameterArray();
     $parameters['Action'] = 'GetCustomersByCustomerId';
     $httpResponse = $this->_invoke($parameters);
     require_once dirname(__FILE__) . '/Model/GetCustomersByCustomerIdResponse.php';
     $response = MWSCustomerService_Model_GetCustomersByCustomerIdResponse::fromXML($httpResponse['ResponseBody']);
     $response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']);
     return $response;
 }
Пример #2
0
 /**
  * Get Customers By Customer Id
  * Returns customer information for
  *         one or more customers, given a seller-directed customer ID.
  *         There is a maximum number of customer IDs supported per request.
  *         See service documentation for that limit.
  *
  * @param mixed $request array of parameters for MWSCustomerService_Model_GetCustomersByCustomerId request or MWSCustomerService_Model_GetCustomersByCustomerId object itself
  * @see MWSCustomerService_Model_GetCustomersByCustomerId
  * @return MWSCustomerService_Model_GetCustomersByCustomerIdResponse
  *
  * @throws Customer_Exception
  */
 public function getCustomersByCustomerId($request)
 {
     //require_once (dirname(__FILE__) . '/Model/GetCustomersByCustomerIdResponse.php');
     return MWSCustomerService_Model_GetCustomersByCustomerIdResponse::fromXML($this->_invoke('GetCustomersByCustomerId'));
 }