unifi-php-api/examples
Seth Mos 4532df8eac - Foreach the array to verify if we really need to update the settings so we only trigger for real updates. (#13)
- Move Test array settings down so you don't accidentally delete sites
- Don't delete sites in debug mode.
- Automatically adopt device if it matches the configured LAN settings, ofcourse this only works correctly when LAN settings are unique between sites.
2018-03-19 23:22:24 +01:00
..
ap_scanning_state.php minor changes to examples and README for consistency 2017-09-07 12:31:47 +02:00
ap_upgrade_firmware.php Add ap_upgrade_firmware.php to Examples (#12) 2018-03-18 14:28:40 +01: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
change_wlan_password.php fixed typo in examples/change_wlan_password.php 2017-10-06 12:55:44 +02:00
config.template.php Add ap_upgrade_firmware.php to Examples (#12) 2018-03-18 14:28:40 +01:00
create_site.php minor bugs removed from two examples 2018-02-01 17:11:05 +01:00
create_voucher.php minor code cleanup and various changes: 2017-10-06 12:46:07 +02:00
delete_site.php minor bugs removed from two examples 2018-02-01 17:11:05 +01:00
disable_device.php Update disable_device.php 2017-10-20 09:25:59 +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
provision.php - Foreach the array to verify if we really need to update the settings so we only trigger for real updates. (#13) 2018-03-19 23:22:24 +01:00
README.md Add a few more function for setting site specific parameters. It was neccesary to create several setting functions 2018-03-13 13:39:38 +01:00
settings.template.php Add a few more function for setting site specific parameters. It was neccesary to create several setting functions 2018-03-13 13:39:38 +01:00
test_connection.php minor code cleanup and various changes: 2017-10-06 12:46:07 +02:00
toggle_led.php minor changes to examples and README for consistency 2017-09-07 12:31:47 +02:00
update_wlan_settings_5.5.X.php minor changes 2018-02-01 16:56:17 +01: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!

Provisioning script

The example provision script easily creates a large number of sites with comparable network configuration. It sets the LAN config to site specific configuration. Copy the settings.template.php and config.template.php to their respective files for testing. This is meant as a basic provisioning only system. Currently used against controller 5.6.30.