Skip to content

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

API client class v1.1.88

11 Feb 13:47
Compare
Choose a tag to compare
  • added list_fingerprint_devices() method to list fingerprints for clients devices, contributed by @dream-rhythm, #213
  • minor code clean up

API client class v1.1.87

11 Feb 11:34
Compare
Choose a tag to compare
  • further code clean up and refactoring to pass more phpstan tests

API client class v1.1.86

10 Feb 12:28
Compare
Choose a tag to compare

API client class v1.1.86

  • fixes issue with curl_init() returning CurlHandle class objects instead of curl handlers with PHP 8 and higher

API client class v1.1.85

10 Feb 11:16
Compare
Choose a tag to compare

API client class v1.1.85

  • removed unnecessary type casting in several methods
  • fixed return type hinting in several methods where return type needed to be array|bool instead of just array
  • relaxed parameter type hinting in the constructor to allow for null values for several parameters that have sensible defaults, reported by @pbksol
  • using phpstan, the class passes level 5 checks

API client class v1.1.84

09 Feb 17:15
Compare
Choose a tag to compare
  • PHP 7.4 is now the minimum required version
  • updated the code for 7.4. specific features such as parameter type hinting, return types, etc.
  • added the ability to the constructor to change the key that is used to store the unificookie in the session,
    ($_SESSION['unificookie'] is used by default), this is useful when running multiple applications on the same server

API client class v1.1.83

18 Dec 14:11
Compare
Choose a tag to compare
  • added a accept: application/json header to the login requests
  • re-added support for cookies when working with a UniFi OS-based controller

API client class v1.1.82

18 Dec 10:44
Compare
Choose a tag to compare
  • allow filtering by multiple MAC addresses in list_devices(), contributed by @sgrodzicki, #189

API client class v1.1.81

18 Dec 10:14
Compare
Choose a tag to compare
  • hotfix to address cookie issues in UniFi OS 3.2.7, reported by @tflatebo
  • fixed minor typos
  • minor code reformatting of the examples
  • starting with this release, cookies are no longer supported when connecting to a UniFi OS-based controller
  • added set_vlan_to_port.php example, contributed by @SamuelSchnelly, #203
  • allow additional parameters in create_wlan()'s payload, contributed by @sgrodzicki, #191

API client class v1.1.80

28 Mar 10:29
Compare
Choose a tag to compare
  • added generate_backup_site() method, contributed by @labo-jad
  • added stat/device-basic endpoint #188, contributed by @sgrodzicki

API client class v1.1.79

28 Mar 09:59
Compare
Choose a tag to compare
  • updated README to reflect support for 7.X
  • get_last_error_message() now always returns a string which is empty if no message is available
  • applied PR #151 in slightly different way for consistency with other similar code sections, contributed by @banakito
  • changed default argument values in several methods/functions from null to an empty string