Hi there
What .xml file is the bandwidth displayed on using the XML API? It is not displayed in accountsummary xml file.
Hi there
What .xml file is the bandwidth displayed on using the XML API? It is not displayed in accountsummary xml file.
The contents of showbw look like the following:
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>
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.
Thanks
Can the xml be called by xml-api/showbw?user=xxxxx?
This there a date variable in showbw? For some reason 2009 is being displayed?
You mean 2009 is being displayed in the year tag, just like 3 is currently displayed in the month tag, indicating which month this bandwidth data is for?
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).