accountsummary function from within your custom script:
/xml-api/accountsummary 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/accountsummary
accountsummary function from within your custom script:
/json-api/accountsummary 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/accountsummary
accountsummary function takes the following required variable as input: accountsummary function. 1 — yes.
0 — no.
1 — success.
0 — failure.
https://example.com:2087/xml-api/accountsummary?user=username
will produce output similar to:
<accountsummary>
<acct>
<disklimit>1000M</disklimit>
<diskused>172M</diskused>
<domain>domain.tld</domain>
<email>email@domain.tld</email>
<ip>127.0.0.1</ip>
<owner>root</owner>
<partition>home</partition>
<plan>reseller_planname</plan>
<startdate>04 May 8 21:12</startdate>
<suspended>1</suspended>
<suspendedreason>Account suspended due to hosting
of pirated software.</suspendedreason>
<theme>x3</theme>
<unix_startdate>1104173413</unix_startdate>
<user>username</user>
</acct>
<status>1</status>
<statusmsg>Ok</statusmsg>
</accountsummary>
https://example.com:2087/json-api/accountsummary?user=username
will produce output similar to:
{
"status":1,
"statusmsg":"Ok",
"acct":[
{
"partition":"home",
"startdate":"09 May 19 07:49",
"plan":"level3 ",
"suspended":0,
"theme":"x3",
"user":"gus",
"unix_startdate":1242737345,
"suspendreason":"not suspended",
"suspendtime":null,
"ip":"127.0.0.1",
"domain":"example.com",
"diskused":"0M",
"owner":"username",
"email":"*unknown*",
"disklimit":"unlimited"
}
]
}
Copyright © cPanel 2000-2009.