Skip to content

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

API client class v1.1.91

31 Jul 08:57
Compare
Choose a tag to compare
  • added `delete_admin()`` method, contributed by @Jacobtims
  • merged PR #228 to add update_admin(), contributed by @Jacobtims
  • reformatting of notes in the doc blocks

API client class v1.1.90

27 Feb 17:49
Compare
Choose a tag to compare
  • remove existing x-csrf-token headers before adding a new one, apparently UniFi OS does not like multiple x-csrf-tokens in the same request

API client class v1.1.89

11 Feb 16:26
Compare
Choose a tag to compare
  • added create_tag(), set_tagged_devices(), get_tag(), and delete_tag() methods to manage tags, contributed by @brenard, #205

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