unifi-api-client/examples
Sebastian Nohn d54f15be2a add example for USG traffic statistics (#3)
* add example for USG traffic statistics

* fix bps
2017-11-26 23:42:12 +01:00
..
authorize-guest.php Fixes #1 authorize guest call always returned unauthorized 2015-11-21 16:01:34 +01:00
config.example.php Initial release of the Unifi API Client 2015-08-09 21:16:24 +02:00
device-statistics.php Fixes #1 authorize guest call always returned unauthorized 2015-11-21 16:01:34 +01:00
README.md Initial release of the Unifi API Client 2015-08-09 21:16:24 +02:00
statistics.php Initial release of the Unifi API Client 2015-08-09 21:16:24 +02:00
unauthorize-guest.php Fixes #1 authorize guest call always returned unauthorized 2015-11-21 16:01:34 +01:00
usg-traffic-stats.php add example for USG traffic statistics (#3) 2017-11-26 23:42:12 +01:00

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