Skip to content

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

API client class v1.1.77

11 Mar 11:09
Compare
Choose a tag to compare
  • removed unnecessary CURLOPT_HEADER from the login() method
  • added several more possible attributes for client stats
  • cast VLAN id to string in create_radius_account()

API client class v1.1.76

29 Dec 14:04
Compare
Choose a tag to compare
  • minor changes based on feedback by Scrutinizer
  • removed use of CURLOPT_NOBODY in login() method
  • switched to using cURL's default HTTP version

API client class v1.1.75

18 Dec 11:03
Compare
Choose a tag to compare
  • updated docblocks to be less USG-specific
  • removed content-length header from the logout method, reported by @Olivier6767
  • added notes to reflect successful tests with UDR running the latest Pre-Release version of the UniFi controller (version 6.5.52)
  • added checks in specific cases when using trim() to prevent PHP 8 from throwing an error when the variable is null, submitted by @djchen

API client class v1.1.74

08 Nov 09:32
Compare
Choose a tag to compare
  • minor refactoring
  • fixed minor typos
  • updated README to reflect limited visibility when using read-only administrator accounts, reported by @KetchupBomb and @NickDunas

API client class v1.1.73

23 Oct 09:16
Compare
Choose a tag to compare
  • minor spacing changes based on Scrutinizer feedback
  • updated create_wlan() method/function to work with the new way of assigning a VLAN which now requires passing the _id value of the VLAN, reported by @BeneReuthlinger
  • merged #132, README update, contributed by @pauloboc
  • merged #133, adds edit_client_name() method, contributed by @pauloboc

API client class v1.1.72

19 Oct 08:41
Compare
Choose a tag to compare
  • added property $request_timeout to control the cURL option CURLOPT_TIMEOUT, contributed by @mreho
  • added setter and getter for $request_timeout, contributed by @mreho
  • changed default value for the cURL option CURLOPT_HTTP_VERSION to CURL_HTTP_VERSION_1_1:
  • added property $curl_http_version to hold the value for CURLOPT_HTTP_VERSION
  • added setter and getter for $curl_http_version
  • switched to using a constant to hold the class version
  • updated the README file

API client class v1.1.71

29 Sep 08:44
Compare
Choose a tag to compare
  • modified create_radius_account() method to make Tunnel Type and Medium optional parameters, contributed by @mreho
  • added advanced_adopt_device() method for more advanced adoption capabilities, contributed by @Sarrus
  • refactored several code sections
  • updated connection test script

API client class v1.1.70

22 Mar 11:00
Compare
Choose a tag to compare
  • shortened several property names based on Code Inspector feedback
  • refactored several code sections based on Code Inspector feedback

API client class v1.1.69

21 Mar 15:10
Compare
Choose a tag to compare
  • added list_device_states() function/method, as suggested by @hoerter
  • implemented fix to prevent cURL from sending an Expect: 100-continue header with each POST request
  • implemented a callback function with the CURLOPT_HEADERFUNCTION option to process the response headers after each request and extract the Cookie contents
  • general cleanup

API client class v1.1.68

24 Jan 17:11
Compare
Choose a tag to compare
  • fixed a bug that was introduced with 1.1.67 and would occur in certain corner cases
  • 1.1.67 should therefore not be used in production