/** * Send Test Notification To Destination * Send a test Notification to the specified destination. * * @param mixed $request array of parameters for MWSSubscriptionsService_Model_SendTestNotificationToDestination request or MWSSubscriptionsService_Model_SendTestNotificationToDestination object itself * @see MWSSubscriptionsService_Model_SendTestNotificationToDestinationInput * @return MWSSubscriptionsService_Model_SendTestNotificationToDestinationResponse * * @throws MWSSubscriptionsService_Exception */ public function sendTestNotificationToDestination($request) { if (!$request instanceof MWSSubscriptionsService_Model_SendTestNotificationToDestinationInput) { require_once dirname(__FILE__) . '/Model/SendTestNotificationToDestinationInput.php'; $request = new MWSSubscriptionsService_Model_SendTestNotificationToDestinationInput($request); } $parameters = $request->toQueryParameterArray(); $parameters['Action'] = 'SendTestNotificationToDestination'; $httpResponse = $this->_invoke($parameters); require_once dirname(__FILE__) . '/Model/SendTestNotificationToDestinationResponse.php'; $response = MWSSubscriptionsService_Model_SendTestNotificationToDestinationResponse::fromXML($httpResponse['ResponseBody']); $response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']); return $response; }
/** * Send Test Notification To Destination * Send a test Notification to the specified destination. * * @param mixed $request array of parameters for MWSSubscriptionsService_Model_SendTestNotificationToDestination request or MWSSubscriptionsService_Model_SendTestNotificationToDestination object itself * @see MWSSubscriptionsService_Model_SendTestNotificationToDestination * @return MWSSubscriptionsService_Model_SendTestNotificationToDestinationResponse * * @throws MWSSubscriptionsService_Exception */ public function sendTestNotificationToDestination($request) { require_once dirname(__FILE__) . '/Model/SendTestNotificationToDestinationResponse.php'; return MWSSubscriptionsService_Model_SendTestNotificationToDestinationResponse::fromXML($this->_invoke('SendTestNotificationToDestination')); }