예제 #1
0
 /**
  * Get Customers For 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_GetCustomersForCustomerId request or MWSCustomerService_Model_GetCustomersForCustomerId object itself
  * @see MWSCustomerService_Model_GetCustomersForCustomerId
  * @return MWSCustomerService_Model_GetCustomersForCustomerIdResponse
  *
  * @throws Customer_Exception
  */
 public function getCustomersForCustomerId($request)
 {
     //require_once (dirname(__FILE__) . '/Model/GetCustomersForCustomerIdResponse.php');
     return MWSCustomerService_Model_GetCustomersForCustomerIdResponse::fromXML($this->_invoke('GetCustomersForCustomerId'));
 }
예제 #2
0
 /**
  * Get Customers For 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_GetCustomersForCustomerId request or MWSCustomerService_Model_GetCustomersForCustomerId object itself
  * @see MWSCustomerService_Model_GetCustomersForCustomerIdRequest
  * @return MWSCustomerService_Model_GetCustomersForCustomerIdResponse
  *
  * @throws MWSCustomerService_Exception
  */
 public function getCustomersForCustomerId($request)
 {
     if (!$request instanceof MWSCustomerService_Model_GetCustomersForCustomerIdRequest) {
         require_once dirname(__FILE__) . '/Model/GetCustomersForCustomerIdRequest.php';
         $request = new MWSCustomerService_Model_GetCustomersForCustomerIdRequest($request);
     }
     $parameters = $request->toQueryParameterArray();
     $parameters['Action'] = 'GetCustomersForCustomerId';
     $httpResponse = $this->_invoke($parameters);
     require_once dirname(__FILE__) . '/Model/GetCustomersForCustomerIdResponse.php';
     $response = MWSCustomerService_Model_GetCustomersForCustomerIdResponse::fromXML($httpResponse['ResponseBody']);
     $response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']);
     return $response;
 }