Trying to get a list of domains and their bandwidth usage, seemed like the UAPI's Bandwidth::query method was the best bet.
I am doing this server-to-server, and when I issue the call per the instructions here:
Use WHM API to Call cPanel API and UAPI - Software Development Kit - cPanel Documentation
I get this return for any request:
My request parameters are as follows:
System is running WHM 54.0 (build 28)
Thanks for any insight you can offer! The docs state that the JSON response should return an integer.
I am doing this server-to-server, and when I issue the call per the instructions here:
Use WHM API to Call cPanel API and UAPI - Software Development Kit - cPanel Documentation
I get this return for any request:
Code:
{"apiversion":3,"func":"query","result":{"messages":null,"errors":null,"status":1,"metadata":{},"data":{}},"module":"Bandwidth"}
Code:
'cpanel_jsonapi_user' => $plan->getUsername(),
'cpanel_jsonapi_apiversion' => 3,
'cpanel_jsonapi_module' => 'Bandwidth',
'cpanel_jsonapi_func' => 'query',
'grouping' => 'domain',
'interval' => 'daily',
'protocols' => 'http',
'timezone' => 'UTC',
'start' => $start,
'end' => $end,
Thanks for any insight you can offer! The docs state that the JSON response should return an integer.