Comments (5)
Fixed in 1.1.86
from unifi-api-client.
Thanks for the PSA 😉 I hope people read it!
At some point in time we need to make the client class more strict, and therefore robust, and type hinting is one important instrument IMHO. Perhaps I went overboard with these two parameters in the constructor, especially when we have to maintain backwards with existing code.
from unifi-api-client.
First, thanks for all the work. I normally try to avoid using external functions at all cost when it comes to doing API stuff. This one is one of the very, very rare occasions where I depart from the normal.
Regarding the breaking changes, I suggest bumping the version to – let's say 1.2 or something to make it more obvious that bigger things might have changed. A x.x.01 change doesn't shout "hey, look, my version changed, stuff might break", especially when in the past these little version changes never broke things and people tend to get used to it.
Again, thanks for your work :-)
from unifi-api-client.
You’re welcome! Yes, totally makes sense since most devs will be requiring 1.1. Will probably bump to 2.0.0 with the next release when I plan on adding Exceptions and removing the trigger_error()
calls.
I also have plans to release a separate API client package that either uses Guzzle directly or the Laravel HTTP client. That package will obviously require the use of composer due to the dependencies while the current package allows devs to simply copy and require the Client.php
file.
from unifi-api-client.
BTW, usually I try to follow semantic versioning as described here:
https://devhints.io/semver
from unifi-api-client.
Related Issues (20)
- Manually authorize guests HOT 3
- Rate limiting? HOT 26
- Function for changing network on the port of device? HOT 3
- HTTP response status received: 400. Probably a controller login failure HOT 6
- en/disable port HOT 2
- Controller 8.0.2 HOT 13
- UDM SE updated to 3.2.7, cannot re-use cookies anymore HOT 30
- Getting "Couldn't connect to server" error HOT 14
- Suggestion for adding method to provide data from /insights/filtering/watchlist HOT 2
- Breaking change… NULL no longer allowed for version number HOT 4
- Added traffic rule functions HOT 1
- Pulling firewall rules? HOT 1
- Example of list_devices_basic usage HOT 3
- list_clients does not include Teleport VPN clients HOT 12
- Unable to get list of sites from local UCG Ultra HOT 2
- AP FlexHD LED color change (strange behavior) HOT 1
- Login fails v1.1.90
- Support log in through MFA HOT 2
- Enable AP auto-update HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from unifi-api-client.