From e4dc2e273cb75718a9d595fc9a9aae6ac19e04c3 Mon Sep 17 00:00:00 2001 From: Sebastian Grodzicki Date: Tue, 28 Mar 2023 12:21:43 +0200 Subject: [PATCH] Add `stat/device-basic` endpoint (#188) Merge to include device-basic endpoint --- src/Client.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/Client.php b/src/Client.php index d14e777..966fa56 100755 --- a/src/Client.php +++ b/src/Client.php @@ -1397,6 +1397,16 @@ class Client return $this->fetch_results('/api/s/' . $this->site . '/list/user'); } + /** + * List of site devices with a basic subset of fields (e.g., mac, state, adopted, disabled, type, model, name) + * + * @return array|false an array containing known UniFi device objects), false upon error + */ + public function list_devices_basic() + { + return $this->fetch_results('/api/s/' . $this->site . '/stat/device-basic'); + } + /** * Fetch UniFi devices *