Hey guys, I cant' seem to find sufficient documentation on where to find the specific modules and functions to be able to create new subdmains, ftp account, email, and new database along with user and assigning a user to a database.
I am using cURL to submit my queries and have a sample call that will lookup the bandwith of my server
this out puts something like:
so I am seeing that my cURL calls are working properly. But now I am looking to see how I can use my script to make the accounts I mentioned above.
Where can I look for the cpanel_jsonapi_module and cpanel_jsonapi_func
or if someone has a resource where such scripts have already been made I would welcome the help.
I chose to use the JSON-API because it was said that its faster than using the XML-API.
I am using cURL to submit my queries and have a sample call that will lookup the bandwith of my server
PHP:
$query = "http://".$this->domain.":".$this->port."/json-api/cpanel?cpanel_jsonapi_module=StatsBar&cpanel_jsonapi_func=stat&display=diskusage&domain=".$this->domain;
this out puts something like:
PHP:
Array ( [diskused] => 11.7 [diskquota] => unlimited [diskleft] => unlimited [bandwidthcount] => 47.3 [bandwidthmax] => unlimited [bandwidthleft] => unlimited )
Where can I look for the cpanel_jsonapi_module and cpanel_jsonapi_func
or if someone has a resource where such scripts have already been made I would welcome the help.
I chose to use the JSON-API because it was said that its faster than using the XML-API.