Hello,
I have a server running 58.0.32. I have been using the WHM API1 createacct function to automate account creation, and the past few days its been causing a bit of trouble. I am connecting to the API using PHP via the XML-API class (GitHub - CpanelInc/xmlapi-php: A PHP Class for Interacting with cPanel's XML-API). Here is an example snippet:
The code does eventually complete, but it seems to be taking an extremely long time to respond. It didn't seem to always act this way.
Can anyone confirm this? Does anyone know if something recently changed in the API that would cause it to take a bit longer to complete?
Thanks in advance...
I have a server running 58.0.32. I have been using the WHM API1 createacct function to automate account creation, and the past few days its been causing a bit of trouble. I am connecting to the API using PHP via the XML-API class (GitHub - CpanelInc/xmlapi-php: A PHP Class for Interacting with cPanel's XML-API). Here is an example snippet:
Code:
include_once '../include/xmlapi.php';
$xmlapi = new xmlapi($host);
$xmlapi->set_port(2087);
$xmlapi->password_auth($my_user, $my_pass);
$xmlapi->set_output('array');
$xmlapi->set_debug(0);
$newAccount = array(username => "example",
password => "pass",
domain => "example.example.com",
pkgname => "Default",
contactemail => "[email protected]");
$account_status = $xmlapi->createacct($newAccount);
Can anyone confirm this? Does anyone know if something recently changed in the API that would cause it to take a bit longer to complete?
Thanks in advance...