src/unifi_api/api.py
def list_guests(self, last_hours=365*24, site='default'):
        '''
            Get all guests ever connected to a given site, only valid accesses
            -------------------------
            returns an array of guest devices
            params:
                Name        | required  | description
                -----------------------------------------
                last_hours  |   False   | last `last_hours` to get guests from, defaults to 1y (365*24 hours)
                site        |   False   | site name to get authorizations, defaults to `default`
        '''
        data = {
            'within': last_hours,
        }

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

            Get all guests ever connected to a given site, only valid accesses
            -------------------------
            returns an array of guest devices
            params:
                Name        | required  | description
                -----------------------------------------
                last_hours  |   False   | last `last_hours` to get guests from, defaults to 1y (365*24 hours)
                site        |   False   | site name to get authorizations, defaults to `default`
        
Get all guests ever connected to a given site, only valid accesses
returns an array of guest devices
params:
Name        | required  | description

last_hours  |   False   | last `last_hours` to get guests from, defaults to 1y (365*24 hours)
site        |   False   | site name to get authorizations, defaults to `default`
Get all guests ever connected to a given site only valid accesses returns an array of guest devices params : Name | required | description last_hours | False | last ` last_hours ` to get guests from defaults to 1y ( 365 * 24 hours ) site | False | site name to get authorizations defaults to ` default `
def list_guests(self, last_hours=365*24, site='default'):
        data = {
            'within': last_hours,
        }
        r = self.get(self.endpoint('/api/s/%s/stat/guest' % site), json=data)
        return self.process_response(r)
def list_guests ( self , last_hours = 365 * 24 , site = 'default' ) : data = { 'within' : last_hours , } r = self . get ( self . endpoint ( '/api/s/%s/stat/guest' % site ) , json = data ) return self . process_response ( r )
Get all guests ever connected to a given site, only valid accesses
returns an array of guest devices
params:
Name        | required  | description
Get all guests ever connected to a given site only valid accesses returns an array of guest devices params : Name | required | description
'''
            Get all guests ever connected to a given site, only valid accesses
            -------------------------
            returns an array of guest devices
            params:
                Name        | required  | description
                -----------------------------------------
                last_hours  |   False   | last `last_hours` to get guests from, defaults to 1y (365*24 hours)
                site        |   False   | site name to get authorizations, defaults to `default`
        '''
self
last_hours
site