Skip to content

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

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

API client class v1.1.67

24 Jan 16:59
Compare
Choose a tag to compare

fixed a bug where the request headers for subsequent function calls within the same Client instance would not always be cleared

API client class v1.1.66

24 Jan 13:22
Compare
Choose a tag to compare
  • simplified code based on Scrutinizer reports

API client class v1.1.65

23 Jan 10:46
Compare
Choose a tag to compare
  • applied minor improvements based on Scrutinizer reports
  • applied minor changes to authorize_guest() to further improve the handling of 0/null/empty values passed
  • restricted protocols to be used by cURL to only allow HTTP and HTTPS for improved security
  • added methods/functions list_device_name_mappings() and stat_full_status()

API client class v1.1.64

21 Jan 10:02
Compare
Choose a tag to compare
  • added information to several docblocks
  • changed handling of request headers, added a private property for this
  • applied changes for improved use of require_once in the README and examples
  • added list_sites() example
  • potential breaking changes:
    renamed get_request_type() and set_request_type() functions/methods to get_request_method() and set_request_method() respectively

API client class v1.1.63

06 Jan 16:05
Compare
Choose a tag to compare
  • changed references to UbiOS back to UniFi OS
  • removed capitalization from all header strings (per RFC, header fields are case-insensitive: https://tools.ietf.org/html/rfc7230#section-3.2)
  • removed charset parameter from headers (not required per RFC)
  • added x-csrf-token header to all requests except GET when talking to UniFi OS-based controllers, thanks go to @paciks for raising #86