Art-of-WiFi / UniFi-API-client

A PHP API client class to interact with Ubiquiti's UniFi Controller API
MIT License
1.09k stars 217 forks source link

Extensibility .. #98

Closed Ericvf closed 3 years ago

Ericvf commented 3 years ago

I've noticed its hard to extend the Client class. Internally you are leveraging partial classes. But those consuming this package via Nuget have the rely on polymorphism. It would be great to have access to the ExecuteJsonCommandAsync method for example.

That way I can write a derived client class with additional API calls, e.g. GetEvents (which is what I needed), without having to clone and compile the library.

malle-pietje commented 3 years ago

I have no clue what you are suggesting. If you have ideas for improvements please share some practical examples/content.