Commit Graph

14 Commits

Author SHA1 Message Date
Joshua Spence
206f4be940 Make golangci-lint more strict (#150)
* Reformat some YAML files

* Make `golangci-lint` more strict
2023-06-23 09:00:12 +10:00
Paul Tyng
4d251731a7 Adjust for 7.1 error handling 2022-07-02 20:13:01 -04:00
Joshua Spence
64a73cdd4b Fix linter issues 2021-06-29 17:43:00 -04:00
Paul Tyng
9e8fe73b85 Return wrapped APIError 2021-03-23 08:50:01 -04:00
Paul Tyng
3eb04af6a7 Fix issue with status not returning controller version on 6.0.43 2021-03-07 11:00:18 -05:00
Paul Tyng
23f4659d36 Fix AP group access on API proxy 2021-03-07 10:59:52 -05:00
Patrick Collins
c55b43115b login before checking status
the status enpoint requires auth, at least in my Cloud Key Firmware 2.X
(UniFi OS) setup.
Presumably there are benefits to checking status before logging in; in
which case I expect this PR will need to be edited.
2021-01-31 15:27:53 -05:00
Russell Parks
55b1bac0bc Fix /status for UDMP (#17) 2020-11-02 13:15:08 -05:00
Paul Tyng
abc676f62b Add support for 6.0.23 2020-10-20 10:10:32 -04:00
Chris Hasenpflug
b2581f5eb3 client: add content-type and csrf headers
required for UnifiOS controllers (UDM, UDM Pro)

Ref paultyng/terraform-provider-unifi#55
2020-10-03 20:40:42 -04:00
Paul Tyng
3d37110380 Fix API path style issues on UDM Pro API proxy 2020-09-24 16:57:04 -04:00
Paul Tyng
2c982433c3 Return wrapped errors in client 2020-03-26 16:13:57 -04:00
Paul Tyng
d076e78005 Add context support 2020-03-26 16:12:52 -04:00
Paul Tyng
435ecf9d6f Initial version
Extracted from paultyng/terraform-provider-unifi@ef25893f14
2020-01-10 14:31:12 -05:00