Actually, I already tried this, but I tried:
'package' => $get_package
..because I didn't know what parameters to use
I will try the response above. It seems promising. I hope it works!
Actually, I already tried this, but I tried:
'package' => $get_package
..because I didn't know what parameters to use
I will try the response above. It seems promising. I hope it works!
wow, finally, it works!
Also, I just got my website approved by AlertPay to accept credit cards, so looks like I will be able to launch my website today
I went to bed at 12:00am and I didn't sleep very well. I got back up at 5:00am just to see what the progress was, and when I checked AlertPay approved my site and this thread was answered. So, I am gonna stay up and finish my site now
I just have one more question.
If I want to add the customer email to the account, what is the paramater for that?
Also, thanks HEAPS for helping me! I would {{{never}}} work it out all by myself. But I also would have never given up, either. I would have just went crazy after failing for weeks![]()
Never mind, I found a list of all the paramaters here:
WHM Functions | Standardized Hooks
I tried:
'contactemail' => $customer_email
..and it worked!
I'm DANGEROUS now!
*working working*
Thanks for the help!
I am very happy now![]()
MrLeN,
The last link you posted is for the Standarized Hook System, not for the Remote API. They are two different things. You can find the available Remote API calls (used for things like creating, modifying, or removing accounts) here:
Remote API Documentation (XML and JSON APIs)
Under the "Functions" section on that page, you'll see that we have organized the different API calls into logical groups for you convenience: such as "Account Functions" section that contain stuff related to WHM accounts, and "Reseller Functions" section for administrating your reseller accounts, etc.
Specifically, you should look at the previous link I posted, for the createacct function:
Remote API Reference: Create Account (createacct)
Under the "Input" section on that page, you will find all the available parameters for createacct()
Regards,
-DavidN
David Neimeyer
Integration Developer
sdk.cpanel.net
APIs: XML-API API1 & API2
Check Out: Developer Downloads Integration Blog
Need Support? Support Ticket Developer Forum Feature Requests
Hey, it worked -- that is good enough for me!
haha!
How To get All the list of email accounts from cpanel through phpscript. . . . .
Examples/api2_example.php does this over at https://github.com/CpanelInc/xmlapi-php - just be sure to download the PHP class and put that file in Examples/api2_example.php and set your settings in api2_example.php before running on your cPanel &WHM server.
A great thread that's so close to answering a problem I have.
I have just purchased some domains in bulk and would like to add them to my WHM account giving each it's own cPanel account. Is there a script available (or anybody who can help for a price) that I can enter my WHM details in and a list of domains and have each account created with a random username and password at all? Ideally it wouldn't be WHM account specific as I have numerous WHM accounts and I would like to share the domains across each one.
Thanks for any help in pointing me to such a script, or indeed if one can be made for me for a price.
Thank you.