d54f15be2a
* add example for USG traffic statistics * fix bps |
||
---|---|---|
.. | ||
authorize-guest.php | ||
config.example.php | ||
device-statistics.php | ||
README.md | ||
statistics.php | ||
unauthorize-guest.php | ||
usg-traffic-stats.php |
Examples
To run the examples, you must copy the config.example.php file to config.php and change the configuration to your needs.
statistics.php
Fetches the client statistics for a given site.
php statistics.php
authorize-guest.php
Authorizes a guest (mac address) for x minutes. You need to login with a user that has full access to the Unifi controller.
php authorize-guest.php
unauthorize-guest.php
Unauthorize a guest (mac address). You need to login with a user that has full access to the Unifi controller.
php unauthorize-guest.php