Nodeworx V3 - API v2

Hi,

I post this just to have a central thread about the new API available in V3 (fade up with looking for this Paul post for ten minutes ;))

There is actually a new API interface to the createaccount function.

You should be able to use either of these two examples to get what you want in the createaccount feature. Note that in the below example the section for secondary domains is referred to as LG_OPT_SLAVE_DOMAINS.

The other interface (that you’re currently using) still works also.

$message = array(
    'apikey' => $access_key,
    '_client_version' = 2.0,
    'account' => array(
        'domain' => $ai_domaine,
        'ipaddr' => $ai_ip,
        'billing_day' => $ai_birthday,
        'nickname' => $ai_pseudo,
        'email' => $ai_email,
        'password1' => $ai_passwd,
        'language' => 'fr',
        'theme' => 'interworx',
        'package_name' => 'package name'
    )
);

OR

$message = array(
    'apikey' => $access_key,
    '_client_version' = 2.0,
    'account' => array(
        'domain' => $ai_domaine,
        'ipaddr' => $ai_ip,
        'billing_day' => $ai_birthday,
        'nickname' => $ai_pseudo,
        'email' => $ai_email,
        'password1' => $ai_passwd,
        'language' => 'fr',
        'theme' => 'interworx',
        'options' => array(
            'LG_OPT_STORAGE' => $XXX,
            'LG_OPT_BANDWIDTH' => $XXX,
            'LG_OPT_EMAIL_ALIASES' => $XXX,
            'LG_OPT_EMAIL_AUTORESPONDERS' => $XXX,
            'LG_OPT_EMAIL_BOXES' => $XXX,
            'LG_OPT_EMAIL_GROUPS' => $XXX,
            'LG_OPT_FTP_ACCOUNTS' => $XXX,
            'LG_OPT_MYSQL_DBS' => $XXX,
            'LG_OPT_MYSQL_DB_USERS' => $XXX,
            'LG_OPT_POINTER_DOMAINS' => $XXX,
            'LG_OPT_SLAVE_DOMAINS' => $XXX,
            'LG_OPT_SUBDOMAINS' => $XXX,
            'LG_OPT_BACKUP' => $XXX,
            'LG_OPT_CGI_ACCESS' => $XXX,
            'LG_OPT_CRONTAB' => $XXX,
            'LG_OPT_RESOLVE_XFERLOG_DNS' => $XXX,
            'LG_OPT_SCRIPTWORX' => $XXX,
            'LG_OPT_SSL' => $XXX,
            'LG_OPT_BURSTABLE' => $XXX,
            'LG_OPT_SAVE_XFER_LOGS' => $XXX
        )
    )
);

The edit account feature you describe doesn’t exist yet, but I agree it’s important, and it’s high on my list.

Pascal

Hi

Does MB5 takes in account all these new data ?

Pascal