src/unifi_api/api.py
def list_online_clients(self, client_mac=None, site='default'):
        '''
            Get online client devices on a given site
            -------------------------
            returns an array of guest devices
            params:
                Name        | required  | description
                -----------------------------------------
                client_mac  |   False   | client mac to search, if not provided all clients will be returned
                site        |   False   | site name to get authorizations, defaults to `default`
        '''
        data = {
            'within': last_hours,
        }

        r = self.get(self.endpoint('/api/s/%s/stat/sta/%s' % (site, client_mac or '')), json=data)
        return self.process_response(r)

            Get online client devices on a given site
            -------------------------
            returns an array of guest devices
            params:
                Name        | required  | description
                -----------------------------------------
                client_mac  |   False   | client mac to search, if not provided all clients will be returned
                site        |   False   | site name to get authorizations, defaults to `default`
        
Get online client devices on a given site
returns an array of guest devices
params:
Name        | required  | description

client_mac  |   False   | client mac to search, if not provided all clients will be returned
site        |   False   | site name to get authorizations, defaults to `default`
Get online client devices on a given site returns an array of guest devices params : Name | required | description client_mac | False | client mac to search if not provided all clients will be returned site | False | site name to get authorizations defaults to ` default `
def list_online_clients(self, client_mac=None, site='default'):
        data = {
            'within': last_hours,
        }
        r = self.get(self.endpoint('/api/s/%s/stat/sta/%s' % (site, client_mac or '')), json=data)
        return self.process_response(r)
def list_online_clients ( self , client_mac = None , site = 'default' ) : data = { 'within' : last_hours , } r = self . get ( self . endpoint ( '/api/s/%s/stat/sta/%s' % ( site , client_mac or '' ) ) , json = data ) return self . process_response ( r )
Get online client devices on a given site
returns an array of guest devices
params:
Name        | required  | description
Get online client devices on a given site returns an array of guest devices params : Name | required | description
'''
            Get online client devices on a given site
            -------------------------
            returns an array of guest devices
            params:
                Name        | required  | description
                -----------------------------------------
                client_mac  |   False   | client mac to search, if not provided all clients will be returned
                site        |   False   | site name to get authorizations, defaults to `default`
        '''
self
client_mac
site