示例#1
0
 /**
  * Deregister Destination
  * Delete a destination.
  *
  * @param mixed $request array of parameters for MWSSubscriptionsService_Model_DeregisterDestination request or MWSSubscriptionsService_Model_DeregisterDestination object itself
  * @see MWSSubscriptionsService_Model_DeregisterDestinationInput
  * @return MWSSubscriptionsService_Model_DeregisterDestinationResponse
  *
  * @throws MWSSubscriptionsService_Exception
  */
 public function deregisterDestination($request)
 {
     if (!$request instanceof MWSSubscriptionsService_Model_DeregisterDestinationInput) {
         require_once dirname(__FILE__) . '/Model/DeregisterDestinationInput.php';
         $request = new MWSSubscriptionsService_Model_DeregisterDestinationInput($request);
     }
     $parameters = $request->toQueryParameterArray();
     $parameters['Action'] = 'DeregisterDestination';
     $httpResponse = $this->_invoke($parameters);
     require_once dirname(__FILE__) . '/Model/DeregisterDestinationResponse.php';
     $response = MWSSubscriptionsService_Model_DeregisterDestinationResponse::fromXML($httpResponse['ResponseBody']);
     $response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']);
     return $response;
 }
示例#2
0
 /**
  * Deregister Destination
  * Delete a destination.
  *
  * @param mixed $request array of parameters for MWSSubscriptionsService_Model_DeregisterDestination request or MWSSubscriptionsService_Model_DeregisterDestination object itself
  * @see MWSSubscriptionsService_Model_DeregisterDestination
  * @return MWSSubscriptionsService_Model_DeregisterDestinationResponse
  *
  * @throws MWSSubscriptionsService_Exception
  */
 public function deregisterDestination($request)
 {
     require_once dirname(__FILE__) . '/Model/DeregisterDestinationResponse.php';
     return MWSSubscriptionsService_Model_DeregisterDestinationResponse::fromXML($this->_invoke('DeregisterDestination'));
 }