|
||||
|
Quote:
__________________
Want our technical analysts to login to your server to assist you? You can contact our technical analysts at: http://tickets.cPanel.net/submit |
|
||||
|
Quote:
HTML Code:
<acct> <deleted>0</deleted> <limit>BANDWIDTH-LIMIT-IN-BYTES</limit> <maindomain>MAIN-DOMAIN</maindomain> <owner>OWNER-OF-ACCOUNT</owner> <reseller>0 OR 1</reseller> <totalbytes>NUMBER-OF-BYTES-TRANSFERRED</totalbytes> <user>USERNAME</user> </acct>
__________________
Want our technical analysts to login to your server to assist you? You can contact our technical analysts at: http://tickets.cPanel.net/submit |
|
|||
|
Thanks very much David.
What are the variables in .../xml-api/showbw? For example like the account summary xml file. <accountsummary> <acct> <disklimit>1000M</disklimit> </acct> It’s just I don't have access to cPanel and I am trying to write a script that parses the xml. Thanks very much. |
|
||||
|
To display the bandwidth consumption for an individual user, you would use:
Code:
xml-api/showbw?search=USERNAME&searchtype=user
__________________
Want our technical analysts to login to your server to assist you? You can contact our technical analysts at: http://tickets.cPanel.net/submit |
|
||||
|
Quote:
Yes, you can set month=MONTH_NUMBER and year=YEAR as GET parameters. - YEAR is a 4-digit year (e.g. 2008) - MONTH_NUMBER is a number representing a month (1 representing January .. 12 representing December).
__________________
Want our technical analysts to login to your server to assist you? You can contact our technical analysts at: http://tickets.cPanel.net/submit |
|
|||
|
Quote:
How can I get the daily bandwidth with the XML-API? Last edited by xfoxx; 05-28-2009 at 01:49 AM. |
|
||||
|
WHM does not generate daily bandwidth reports. Therefore, since WHM doesn't have this function - there is no API to access such information.
__________________
Want our technical analysts to login to your server to assist you? You can contact our technical analysts at: http://tickets.cPanel.net/submit |
|
|||
|
Quote:
,but thahks for your answer.I have one more, can i change the quota without using scripts/editquota.
|
|
||||
|
At this time, cPanel user quota modification is not available in our XML API except by means of changing the package associated with that account.
__________________
Want our technical analysts to login to your server to assist you? You can contact our technical analysts at: http://tickets.cPanel.net/submit |
![]() |
| Thread Tools | |
| Display Modes | |
|
|