Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More Information #1

Open
henryemekaofozor opened this issue Aug 12, 2018 · 3 comments
Open

More Information #1

henryemekaofozor opened this issue Aug 12, 2018 · 3 comments

Comments

@henryemekaofozor
Copy link

Hello,

Great work. Please provide more information on how to use this script. and also how to setup without composer

@boyforeigner
Copy link

can you please give an example of how create an account.
i tried but always gives error.

@kareemzok
Copy link

can you please give an example of how create an account.
i tried but always gives error.

Hello find exmaple below

$whmClient = new WHMClient($username,$api_token, $server, $port);
$accounts = new Accounts($whmClient);

$account = new Account();
$account->setUser( 'kareemacc' );
$account->setDomain( 'kareemaccount.com' );
$account->setEmail( '[email protected]' );
$account->setPassword( 'TH3p433w0rD' );
$account->setPlanName( 'zeeswebc_Silver' );
$account_creation = $accounts->create($account);
var_dump($account_creation);

@kareemzok
Copy link

Hello,

Great work. Please provide more information on how to use this script. and also how to set up without a composer

To set it up without a composer you need to download the file separately and include it in the normal way in PHP ( includes)

Hope that's help cause I m not sure

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants