Set auto renew

				
					StructOperationResponse WebHostingUpdate(string $IDsession, string $id, string $action, array $params)

Enable or disable the auto renew feature.

REQUIRED


  • idSession
    string
    (32)
    Session ID
  • id
    string
    Hosting ID.
  • action
    string
    Set to « SetAutoRenew ».
  • params
    array
    {« value »: « true »/ »false »}.

An Object of type StructOperationResponse

<?php 
$clientSOAP = new SoapClient("http://URL.wsdl");
 
try 
{
    $params = array("value" => "true");
 
    $idSession = $clientSOAP->sessionOpen("XXXX", "XXXX", "EN"); 
    $clientSOAP->WebHostingUpdate($idSession, "NW1024", "SetAutoRenew", $params)); 
}
catch(SoapFault $fault) 
{
    echo "Exception : " .$fault->getMessage(). "n"; 
}
 
if (isset($idSession)) 
{
    $clientSOAP->sessionClose($idSession); 
}
 
 

Need an API Client?
Speed up your integration by using our API client for SOAP