Hi there
I was not able to find such an API
I want to suspend the whole reseller accounts.
Reseller A
client A1
client A2
client A3
I want to suspend these all accounts. How can I do this with API ?
Hi there
I was not able to find such an API
I want to suspend the whole reseller accounts.
Reseller A
client A1
client A2
client A3
I want to suspend these all accounts. How can I do this with API ?
Vivek,
This is not something that can be done in a single command, however it is easy enough to do:
pseudocode:
Code:$resellerinfo = xmlin( GEThttp://ip:2086/xml-api/resellerstats?reseller=$reseller) foreach $acct ($resellerinfo->{result}->{accts} ) { GET http://ip:2086/xml-api/suspendacct?user=$acct->{user} } GET http://ip:2086/xml-api/suspendacct?user=$reseller
Last edited by cPanelMatt; 02-10-2009 at 12:54 PM.
But I think this is something easy
$request = "/scripts/suspendreseller?resalso=1&reseller=$uname";
That wouldn't be through our APIs however - that can be done![]()