def list_channels(self, owner):
        '''List the channels for owner
        If owner is none, the currently logged in user is used
        '''
        url = '%s/channels/%s' % (self.domain, owner)

        res = self.session.get(url)
        self._check_response(res, [200])
        return res.json()
def list_channels ( self , owner ) : url = '%s/channels/%s' % ( self . domain , owner ) res = self . session . get ( url ) self . _check_response ( res , [ 200 ] ) return res . json ( )
List the channels for owner
        If owner is none, the currently logged in user is used