Skip to content

Releases: Art-of-WiFi/UniFi-API-client

API client class v1.1.41

29 Apr 15:38
Compare
Choose a tag to compare
  • changed create_wlan function/method to not include passphrase in payload when security = "open" and passphrase = null
  • fixed indentations in several places
  • added custom_api_request() function/method which allows a programmer to issue custom API requests that may not yet be supported by this client (to be used with care!)
  • added example demonstrating use of custom_api_request()
  • removed repetitive code and optimized exec_curl() when creating the final payload, resulting in 10-20% performance increase and slightly lower memory consumption by PHP

API client class v1.1.40

21 Jan 08:43
Compare
Choose a tag to compare

fixed functions assign_existing_admin() and invite_admin() to support controller versions 5.9 and higher because of observed changes in controller behavior

API client class v1.1.39

19 Jan 14:22
Compare
Choose a tag to compare

added function/method assign_existing_admin()
fixed code for function/method invite_admin()
minor code tweaks for improved readability

API client class v1.1.38

14 Dec 10:32
Compare
Choose a tag to compare

made regex to extract cookies case-insensitive, though this would only be needed for corner cases this is still RFC compliant (https://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html#sec4.2), thanks to @ericfri
changed the layout of the README file to put more emphasis on the installation options and the basic example, and less on the list of methods/functions

API client class v1.1.37

05 Nov 11:19
Compare
Choose a tag to compare

updated both READMEs
added cmd_stat() function, can currently only be used to reset DPI counters for the current site
added optional group_id parameter to list_firewallgroups() which allows you to select a single firewall group, thanks to @VWT-Dan for the suggestion

API client class v1.1.36

24 Oct 07:59
Compare
Choose a tag to compare

added methods stat_ips_events(), set_ips_settings_base(), supported with controllers 5.9.10 and higher
thanks go to @leonardogyn for providing access to a 5.9.29 controller and test network for test/validation purposes

API client class v1.1.35

20 Oct 12:31
Compare
Choose a tag to compare

general code cleanup:

  • added spaces throughout Client.php following PSR-2 guidelines that were skipped in the previous commit
  • added visibility to constructor and destructor methods following PSR-2 recommendations
  • declare user and password properties and visibility following PSR-2 recommendations
  • updated README to add recently added functions/methods
  • minor general changes to the README

API client class v1.1.34

10 Oct 08:16
Compare
Choose a tag to compare
  • added spaces throughout Client.php following PSR-2 guidelines
  • changed checks to prevent 0 (zero), and "0" values from being submitted to the API for routes where this can have negative side effects

API client class v1.1.33

02 Oct 10:19
Compare
Choose a tag to compare
  • merged PR #28, thanks go to @jamieaitken
  • further cleanup to follow PSR-2 as much as possible
  • added stat_5minutes_gateway(), stat_hourly_gateway() and stat_daily_gateway() methods
  • added changes to ensure we always use lowercase MAC addresses in API routes and payload (we have seen several issues with controllers ignoring uppercase MAC addresses)

API client class v1.1.32

28 Aug 12:47
Compare
Choose a tag to compare
  • added stat_speedtest_results() method/function to collect results from scheduled speed tests
  • added list_backups() method/function to list auto backups