[QUOTE=IWorx-Paul;12168]Hi Pascal,
Regarding the API, unfortunately we weren’t able to get the new API functionliaty in that we wanted to just yet, so no, the birthday / billing date is not setable - although - if you e-mail me what client code you’re currently using, I may be able to help in this area.
Yes, users can add subdomains and pointer domains now in clusters, that limitation has been removed.
Paul[/QUOTE]
Hi Paul
Thanks for the answer
Ok here is the code we use to create a new account using the API.
$message = array(
'access_key' => $access_key,
'account_info' => array (
$ai_pseudo,
$ai_email,
$ai_passwd,
$ai_domaine,
$ai_ip),
'features_list' => array (
'LG_OPT_STORAGE' => $LG_OPT_STORAGE,
'LG_OPT_BANDWIDTH' => $LG_OPT_BANDWIDTH,
'LG_OPT_EMAIL_ALIASES' => $LG_OPT_EMAIL_ALIASES,
'LG_OPT_EMAIL_AUTORESPONDERS' => $LG_OPT_EMAIL_AUTORESPONDERS,
'LG_OPT_EMAIL_BOXES' => $LG_OPT_EMAIL_BOXES,
'LG_OPT_EMAIL_GROUPS' => $LG_OPT_EMAIL_GROUPS,
'LG_OPT_FTP_ACCOUNTS' => $LG_OPT_FTP_ACCOUNTS,
'LG_OPT_MYSQL_DBS' => $LG_OPT_MYSQL_DBS,
'LG_OPT_MYSQL_DB_USERS' => $LG_OPT_MYSQL_DB_USERS,
'LG_OPT_POINTER_DOMAINS' => $LG_OPT_POINTER_DOMAINS,
'LG_OPT_SUBDOMAINS' => $LG_OPT_SUBDOMAINS,
'LG_OPT_CGI_ACCESS' => $LG_OPT_CGI_ACCESS,
'LG_OPT_CRONTAB' => $LG_OPT_CRONTAB,
'LG_OPT_RESOLVE_XFERLOG_DNS' => $LG_OPT_RESOLVE_XFERLOG_DNS,
'LG_OPT_SSL' => $LG_OPT_SSL,
'LG_OPT_BURSTABLE' => $LG_OPT_BURSTABLE,
'LG_OPT_SAVE_XFER_LOGS' => $LG_OPT_SAVE_XFER_LOGS)
);
$result = xmlrpc_request( $hostname, '2443', 'https', 'iworx.createaccount', $message, 0 );
if ($result == "SUCCESS" )
{
do the job if success
} else {
do the job if unsuccess
}
There is missing :
For the account_info :
- Birthday date
- Language
- Theme
For the features_list
- Account backup
- scriptworx
- Number of secondary domains
So everytime we create a new siteworx account using the API, we have to manually set the scriptworx option to enable it, define the birthday date. Since the V2 it has been added new features but the API has not been updated. So our self made tool is not completly automatized. With the V3 we will have to manually set the backup option and the secondary domain ?
Maybe it is possible to define a default value in the iworx.ini file ?
Also, Today our self made payment controls tool allow us to automaticly :
- Create the new account if the payment is OK
- Suspend an account when a payment failed
- Unsuspend an account if the payment is done after a failed payment
- Delete an account 30 days after a deletion ask from the user himself
We also have an automatized process for every users whom upgrade their hosting accounts. The problem is that, yet, there is no API to update an account (features_list). So we have to do this manualy, which take time for us.
Do you plan to add the Update feature to the API ? when ?
I think it is a very important feature and a lot of 3rd party tool like modernbill would like to use it
Thanks
Pascal