Merge branch 'master' of github.com:Art-of-WiFi/UniFi-API-client

merge for device-basic
This commit is contained in:
malle-pietje 2023-03-28 12:22:42 +02:00
commit 9e092f8b85

View File

@ -1396,6 +1396,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
*