Hello,
I use your API to automaticly create siteworx account.
I use the xml-rpc library for php from INCUTIO (http://scripts.incutio.com/xmlrpc/)
Everything is working fine, but :
- I alaways have an error returning “Something went wrong - 902 : Domain Name Already Exists”
- I can’t use port 2443
Here is a part of my PHP script
include(‘include/IXR_Library.inc.php’);
$client = new IXR_Client(‘padawan.carat-hosting.com’, ‘/nodeworx/xmlrpc-api.php’, 2080);
if (!$client->query(‘iworx.createaccount’,
Array (‘access_key’ => ‘fjt8wn1lkjfjt8wn1lkjxx’,
‘account_info’ => Array (‘admin’,
‘admin@test.com’,
‘testpasswd’,
‘domain-api.com’,
‘65.110.36.146’),
‘features_list’ =>
Array (‘LG_OPT_STORAGE’ => 250,
‘LG_OPT_BANDWIDTH’ => 20,
‘LG_OPT_EMAIL_ALIASES’ => 999999999,
‘LG_OPT_EMAIL_AUTORESPONDERS’ => 999999999,
‘LG_OPT_EMAIL_BOXES’ => 999999999,
‘LG_OPT_EMAIL_GROUPS’ => 999999999,
‘LG_OPT_FTP_ACCOUNTS’ => 999999999,
‘LG_OPT_MYSQL_DBS’ => 999999999,
‘LG_OPT_MYSQL_DB_USERS’ => 999999999,
‘LG_OPT_POINTER_DOMAINS’ => 999999999,
‘LG_OPT_SUBDOMAINS’ => 999999999,
‘LG_OPT_CGI_ACCESS’ => ‘false’,
‘LG_OPT_CRONTAB’ => ‘true’,
‘LG_OPT_RESOLVE_XFERLOG_DNS’ => ‘false’,
‘LG_OPT_SSL’ => ‘false’,
‘LG_OPT_BURSTABLE’ => ‘true’,
‘LG_OPT_SAVE_XFER_LOGS’ => ‘true’))
)) {
die('Something went wrong - ‘.$client->getErrorCode().’ : '.$client->getErrorMessage());
}
It creates the siteworx account but always returns “Something went wrong - 902 : Domain Name Already Exists”
Any idea why ?
More, it could be great to improve your api and give more parameters to the iworx.createaccount to be able to use a package rather than list all parameters for creating the siteworx account.
Thanks for your help
ps : my script is in a .htaccess secure directory
Pascal