unifi-php-api/examples
malle-pietje 971c77ab5f various tweaks and an addition
- more relaxed handling of $site in set_site(), now we only issue an error message when provided (short) site name is probably incorrect and debug mode is
true
- added test_connection.php, a command line script which can be used to quickly test the connection to your controller with various cURL options which you can
quickly change
2017-09-14 12:15:21 +02:00
..
ap_scanning_state.php minor changes to examples and README for consistency 2017-09-07 12:31:47 +02:00
auth_guest_basic.php minor changes to examples and README for consistency 2017-09-07 12:31:47 +02:00
auth_guest_with_note.php minor changes to examples and README for consistency 2017-09-07 12:31:47 +02:00
config.template.php initial commit 2017-09-05 11:48:35 +02:00
create_voucher.php minor changes to examples and README for consistency 2017-09-07 12:31:47 +02:00
extend_guest_auth.php minor changes to examples and README for consistency 2017-09-07 12:31:47 +02:00
list_alarms.php minor changes to examples and README for consistency 2017-09-07 12:31:47 +02:00
list_ap_connected_users.php minor changes to examples and README for consistency 2017-09-07 12:31:47 +02:00
list_site_health.php minor changes to examples and README for consistency 2017-09-07 12:31:47 +02:00
list_social_auth_details.php minor changes to examples and README for consistency 2017-09-07 12:31:47 +02:00
README.md initial commit 2017-09-05 11:48:35 +02:00
test_connection.php various tweaks and an addition 2017-09-14 12:15:21 +02:00
toggle_led.php minor changes to examples and README for consistency 2017-09-07 12:31:47 +02:00

API client class usage examples

This directory contains some PHP code examples which demonstrate usage of the PHP API client class and can be used as a good starting point for your own custom code.

Usage

Copy the appropriate example file to your working directory together with a copy of the config.template.php file which should be renamed to config.php. Then update the contents of your new config.php with your controller details and credentials and modify the example file as required to fit your needs.

Contribute

If you would like to share your own example file(s), please open an issue and include your code there or else create a pull request.

Important Disclaimer

Use these examples at your own risk!