Set auto renew

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

Enable or disable auto renew feature.

REQUIRED


  • idSession string (32)
    Session ID.
  • domain string (255)
    Domain name.
  • codePref string
    Set to: “auto_renew”.
  • value string (1)
    Set to: 0 to disable, 1 to enable.

An Object of type StructOperationResponse

This feature is available according to the extension.

See structdomaintldinfo.HasAutorenew

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