|
Update.
How easy is to create an account.
$new_account['user'] = 'user_here';
$new_account['pass'] = 'pass_here'; // leave empty class will generate automatic a password
$new_account['domain'] = 'domain_name';
$new_account['email'] = 'customer_email_address';
$new_account['plan'] = 'your_hosting_plan';
$new_account['reseller'] = 0 or 1
$response = $accounting->createacct($new_account);
$response is an array and looks like:
$response['action'] = 'createacct';
$response['set'] is an array with data configured by you, example:
$reponse['set']['user'] will return the user configured by you.
$response['get'] is the array with data returned by XML-API
$response['result] is:
1 - ok
0 - not ok
$reponse['resultmsg'] = the error
$response['data'] = return a storable representation of all data.
// changing the primary domain;
$result = $accounting->changePrimaryDomain($user , $newdomain);
|