Hi Folks,
Im back again with what will probably turn out to be a RTFM issue.
I am using CMD_API_SHOW_USER_USAGE call to try and retrieve bandwidth and diskspace used. The response example below was made on a newly created user so the 0.0 values are expected.
bandwidth=0.0&domainptr=0&ftp=1&mysql=1&nemailf=0&nemailml=0&nemailr=0&nemails=1&nsubdomains=0"a=0.0&vdomains=1
The bandwidth i get fine but looking at the API spec, i expected the second key/value set to be 'quota' which is the amount of disk space used by the user.
As you can see in my response above, this value is missed out.
After playing around with other requests on sites that have plenty of activity and comparing what i get with the information in the control panel, i did manage to kindof figure it out but i think there is a serious problem with the response.
after 'exploding' the response based on &, one of the elements reads:
nsubdomains=0"a=0.0
now the a=0.0 part seems to match the quota. Im guessing that the 'quot' is missing from the start.
since nsubdomains is supposed to be a key, i also assume that " should be &
If this is a bug then can i beg and plead that you fix it as soon as possible as i need to finish my billing system in the next couple of weeks.
If this is just me in serious need to RTFM then i do apologise profusely and i will go and hide under the nearest rock!.
Thanks to u guys for implementing my feature request. (Domain Pointers.) I just noticed it when i updated to the latest version.
That was much faster than i expected.
- James
Im back again with what will probably turn out to be a RTFM issue.
I am using CMD_API_SHOW_USER_USAGE call to try and retrieve bandwidth and diskspace used. The response example below was made on a newly created user so the 0.0 values are expected.
bandwidth=0.0&domainptr=0&ftp=1&mysql=1&nemailf=0&nemailml=0&nemailr=0&nemails=1&nsubdomains=0"a=0.0&vdomains=1
The bandwidth i get fine but looking at the API spec, i expected the second key/value set to be 'quota' which is the amount of disk space used by the user.
As you can see in my response above, this value is missed out.
After playing around with other requests on sites that have plenty of activity and comparing what i get with the information in the control panel, i did manage to kindof figure it out but i think there is a serious problem with the response.
after 'exploding' the response based on &, one of the elements reads:
nsubdomains=0"a=0.0
now the a=0.0 part seems to match the quota. Im guessing that the 'quot' is missing from the start.
since nsubdomains is supposed to be a key, i also assume that " should be &
If this is a bug then can i beg and plead that you fix it as soon as possible as i need to finish my billing system in the next couple of weeks.
If this is just me in serious need to RTFM then i do apologise profusely and i will go and hide under the nearest rock!.
Thanks to u guys for implementing my feature request. (Domain Pointers.) I just noticed it when i updated to the latest version.
That was much faster than i expected.
- James