9f5aaa9838
for setting the information, although the site configuration is returned whole as one object. I also added a provisioning example that I use with our internal ERP that automatically creates, updates and deletes sites according to internal ERP site information. I added a settings template that has a couple of the most useful defaults, like auto upgrade, country and locale. |
||
---|---|---|
.. | ||
ap_scanning_state.php | ||
auth_guest_basic.php | ||
auth_guest_with_note.php | ||
change_wlan_password.php | ||
config.template.php | ||
create_site.php | ||
create_voucher.php | ||
delete_site.php | ||
disable_device.php | ||
extend_guest_auth.php | ||
list_alarms.php | ||
list_ap_connected_users.php | ||
list_site_health.php | ||
list_social_auth_details.php | ||
provision.php | ||
README.md | ||
settings.template.php | ||
test_connection.php | ||
toggle_led.php | ||
update_wlan_settings_5.5.X.php |
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.