I would like to call your api for customer-statistics to retrieve the stats. I can make the call successfully but how can I call it for a date range and is this the correct api call to get all stats as per the statistics on the customer view(i.e. the sessions; usage per day; FUP stats).
Hi, the stats that are available are sessions statistics.
How often your sessions are closed ? Is it pppoe sessions or it’s Mikrotik API accounting sessions ?
Filter settings allow you to display sessions via API for the period XX.XX.XXXX from to XX.XX.XXXX
Graph is shown for statistics per Day if I’m correct.
Daily/hourly and weekly - this is the small FUP counter table. I’m not sure how to get it from api. @ex do you have any idea ?
/**
* Get list of traffics for internet service.
*
* ```php
* // You may get all traffics with specify service id through url:
* $params = [
* 'main_attributes' => ['service_id' => 1]
* ];
* $url = 'admin/customers/customer-traffic-counter' . '?' . http_build_query($params);