.pdf)
WHM Plugins
acctcounts function from within your custom script:
/xml-api/acctcounts function call name, plus the required variables (see below), to a URL which includes the address of your server.
example.com, you would include the following string in your script: https://example.com:2087/xml-api/acctcounts
acctcounts function from within your custom script:
/json-api/acctcounts function call name, plus the required variables (see below), to a URL which includes the address of your server.
example.com, you would include the following string in your script: https://example.com:2087/json-api/acctcounts
acctcounts function takes the following optional variable as input: joe
acctcounts function. acctcounts function call. 1 — success.
0 — failure.
acctcounts function call.
https://example.com:2087/xml-api/acctcounts?user=joe
will produce output similar to:
<acctcounts>
<reseller>
<account>joe</account>
<active>4</active>
<limit/>
<suspended>0</suspended>
</reseller>
<result>
<status>1</status>
<statusmsg>Obtained reseller account counts.</statusmsg>
</result>
</acctcounts>
https://example.com:2087/json-api/acctcounts?user=joe
will produce output similar to:
{
"reseller":{
"suspended":1,
"account":"joe",
"active":3,
"limit":""
},
"result":[
{
"status":1,
"statusmsg":"Obtained reseller account counts."
}
]
}