Add stat/device-basic endpoint (#188)
Merge to include device-basic endpoint
This commit is contained in:
committed by
GitHub
parent
cbe89d913c
commit
e4dc2e273c
@@ -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
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user