mirror of
https://github.com/Art-of-WiFi/UniFi-API-client.git
synced 2024-11-21 17:49:59 +01:00
d7827fdbf1
Finalised merge of PRs #10, #11, #12 and #13 Methods/functions added: - list_country_codes() - set_guestlogin_settings_base() - set_site_connectivity() - set_site_country() - set_site_guest_access() - set_site_locale() - set_site_mgmt() - set_site_name() - set_site_ntp() - set_site_snmp() Examples added: - ap_upgrade_firmware.php - site_provisioning_example - update_ac-iw_ports.php |
||
---|---|---|
.. | ||
site_provisioning_example | ||
ap_scanning_state.php | ||
ap_upgrade_firmware.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 | ||
README.md | ||
test_connection.php | ||
toggle_led.php | ||
update_ac-iw_ports.php | ||
update_device_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!