Releases: Art-of-WiFi/UniFi-API-client
Releases · Art-of-WiFi/UniFi-API-client
API client class v1.1.72
- 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:
- as of cURL version 7.62.0 the default value is CURL_HTTP_VERSION_2TLS which may cause issues
- https://curl.se/libcurl/c/CURLOPT_HTTP_VERSION.html
- 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
API client class v1.1.70
- shortened several property names based on Code Inspector feedback
- refactored several code sections based on Code Inspector feedback
API client class v1.1.69
- 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
- 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
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
- simplified code based on Scrutinizer reports
API client class v1.1.65
- 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()
andstat_full_status()
API client class v1.1.64
- 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:
renamedget_request_type()
andset_request_type()
functions/methods toget_request_method()
andset_request_method()
respectively
API client class v1.1.63
- 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