listaccts function from within your custom script:
/xml-api/listaccts 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/listaccts
listaccts function from within your custom script:
/json-api/listaccts 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/listaccts
listaccts function takes the following variables as input. Both variables are optional: domain, owner, user, ip, package
listaccts function. 500M
500M
example.com
user@example.com
username
YY MMM DD HH:MM
username
1 — yes.
0 — no.
https://example.com:2087/xml-api/listaccts?searchtype=user&search=luv
will produce output similar to the following:
<listaccts>
<acct>
<disklimit>unlimited</disklimit>
<diskused>19M</diskused>
<domain>example.com</domain>
<email>user@example.net</email>
<ip>127.0.0.1</ip>
<owner>luvexample</owner>
<partition>home</partition>
<plan>Plan One</plan>
<startdate>09 Apr 11 15:49</startdate>
<suspended>0</suspended>
<suspendreason>not suspended</suspendreason>
<suspendtime/>
<theme>x3</theme>
<unix_startdate>1239482997</unix_startdate>
<user>luvexample</user>
</acct>
<status>1</status>
<statusmsg>Ok</statusmsg>
</listaccts>
?searchtype=user&search=luv limits the results to accounts with a username containing luv.
https://example.com:2087/json-api/listaccts?searchtype=user&search=luv
will produce output similar to the following:
{
"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":"gus",
"email":"*unknown*",
"disklimit":"unlimited"
}
]
}
?searchtype=user&search=gus limits the results to accounts with a username containing gus.
Copyright © cPanel 2000-2009.