Delete contact

				
					StructOperationResponse contactDelete(string idSession, string idContact)
				
			

Delete a contact.

REQUIRED


  • idSession string (32)
    Session ID.
  • idContact string (12)
    ID of the contact to delete.

An Object of type StructOperationResponse

  • Can’t be used on a contact linked to a domain or a service.
<?php 
$clientSOAP = new SoapClient("http://URL.wsdl");
 
 
try 
{ 
      $idSession = $clientSOAP->sessionOpen("XXXX", "XXXX", "EN");                                     
      $StructOperationResponse = $clientSOAP->contactDelete($idSession, "ID01"); 
 
      print_r($StructOperationResponse); 
} 
catch(SoapFault $fault) 
{ 
      echo "Exception : " .$fault->getMessage(). "\n"; 
} 
 
if (isset($idSession)) 
{ 
      $clientSOAP->sessionClose($idSession); 
} 
?>