Install prestashop

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

Automated installation of prestashop.

REQUIRED

  • idSession string (32)
    Session ID.
  • id string
    Hosting ID.
  • action string
    Set to “InstallPrestashop”.
  • params array
    {“fqdn”:fqdn of the vhost,
    “sitename”: the name of the website,
    “emailadmin”: administrator’s email address,
    “passwordadmin”: administrator’s password,
    “firstname”: administrator’s first name,
    “lastname”: administrator’s last name,
    “language”: “FR” / “EN”}.

An Object of type StructOperationResponse

<?php 
$clientSOAP = new SoapClient("http://URL.wsdl");
 
try 
{
    $params = array("fqdn" => "test.wordpress.netim.com",
         "sitename" => "netim",
         "emailadmin" => "admin@netim.com",
         "passwordadmin" => "12abCD%@",
         "firstname" => "Bruno",
         "lastname" => "Vincent",
         "language" => "FR");
 
    $idSession = $clientSOAP->sessionOpen("XXXX", "XXXX", "EN"); 
    $clientSOAP->WebHostingVhostUpdate($idSession, "NW1024", "InstallPrestashop", $params)); 
}
catch(SoapFault $fault) 
{
    echo "Exception : " .$fault->getMessage(). "\n"; 
}
 
if (isset($idSession)) 
{
    $clientSOAP->sessionClose($idSession); 
}