Skip to content

Commit

Permalink
Add stat/device-basic endpoint (#188)
Browse files Browse the repository at this point in the history
Merge to include device-basic endpoint
  • Loading branch information
sgrodzicki authored Mar 28, 2023
1 parent cbe89d9 commit e4dc2e2
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -1397,6 +1397,16 @@ public function list_users()
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
*
Expand Down

0 comments on commit e4dc2e2

Please sign in to comment.