Set tag

				
					StructOperationResponse domainSetPreference(string idSession, string domain, string codePref, string value)
				
			

Set a tag on a domain.

REQUIRED


  • idSession string (32)
    Session ID.
  • domain string (255)
    Domain name.
  • codePref string
    Set to: “tag”.
  • value string (16)
    Tag value.

An Object of type StructOperationResponse

<?php 
$clientSOAP = new SoapClient("http://URL.wsdl");
 
try 
{ 
      $idSession = $clientSOAP->sessionOpen("XXXX", "XXXX", "EN");
      $clientSOAP->domainSetPreference($idSession, "netim.com", "tag", "CUSTOMER1"); 
} 
catch(SoapFault $fault) 
{ 
      echo "Exception : " .$fault->getMessage(). "\n"; 
} 
 
if(isset($idSession)) 
{ 
      $clientSOAP->sessionClose($idSession); 
} 
?>