Art-of-WiFi / UniFi-API-client

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

Add method to list all configured clients. #134

Closed pauloboc closed 2 years ago

pauloboc commented 2 years ago

Add method to list all configured clients.

malle-pietje commented 2 years ago

Thanks for the contribution! I suggest modifying the existing method by adding an optional parameter that determines whether to only fetch configured clients or use the current payload instead.

pauloboc commented 2 years ago

Thanks, Another alternative would be to remove the $showconfigured parameter and check for $historyhours > 0.

Which alternative do you think is better?

pauloboc commented 2 years ago

@malle-pietje

malle-pietje commented 2 years ago

Haven't had the time yet to dive into this.