cPanelDavidG

Technical Product Specialist
Nov 29, 2006
11,216
13
313
Houston, TX
cPanel Access Level
Root Administrator
Can you point me to the part that explains how to create a new WHM account with PHP?
The APIs are XML-Based (Correction: and JSON based for those that prefer JSON), effectively making it language agnostic (unlike the classes and SDKs we build on top of them). As a result, our documentation examples feature XML and JSON examples, which you can then use other programming languages to interact with (e.g. Perl, PHP, ASP.NET etc.).

Reading the raw documentation assumes you already know how to work with XML via your chosen programming language and are not necessarily using any SDKs, classes etc. we distribute. This assumes that one feels both comfortable with the programming language and is experienced with many of the features and functionality of their chosen programming language. This is not a path for those with minimal programming skills, they should instead use our SDKs and classes.

Furthermore, the documentation assumes you already know how to authenticate a HTTPS or HTTP session via your chosen programming language, some examples are provided via: ApiAuthentication < SoftwareDevelopmentKit < TWiki

For someone experienced with building web applications, these are very low requirements - but for lesser experienced programmers who are not familiar with how to establish a HTTPS connection in their programming language from scratch, this can be difficult.

Overview documentation for the XML API:
XML and JSON APIs

The createacct API call:
CreateAccount < SoftwareDevelopmentKit < TWiki
 
Last edited:

cPanelDavidG

Technical Product Specialist
Nov 29, 2006
11,216
13
313
Houston, TX
cPanel Access Level
Root Administrator
I'll take that as a no.
For those with lesser programming expertise we make available thoroughly documented (via comments and self-descriptive variable names) example code and SDKs so they can interact with our APIs from commonly used languages like PHP with little more than a novice level expertise of XML or internet protocols. You can find such items listed on cPanel & WHM's SDK