perceval/backends/core/slack.py
def conversation_members(self, conversation):
        """Fetch the number of members in a conversation, which is a supertype for public and
        private ones, DM and group DM.

        :param conversation: the ID of the conversation
        """
        members = 0

        resource = self.RCONVERSATION_INFO

        params = {
            self.PCHANNEL: conversation,
        }

        raw_response = self._fetch(resource, params)
        response = json.loads(raw_response)

        members += len(response["members"])
        while 'next_cursor' in response['response_metadata'] and response['response_metadata']['next_cursor']:
            params['cursor'] = response['response_metadata']['next_cursor']
            raw_response = self._fetch(resource, params)
            response = json.loads(raw_response)
            members += len(response["members"])

        return members
def conversation_members(self, conversation):
        members = 0

        resource = self.RCONVERSATION_INFO

        params = {
            self.PCHANNEL: conversation,
        }

        raw_response = self._fetch(resource, params)
        response = json.loads(raw_response)

        members += len(response["members"])
        while 'next_cursor' in response['response_metadata'] and response['response_metadata']['next_cursor']:
            params['cursor'] = response['response_metadata']['next_cursor']
            raw_response = self._fetch(resource, params)
            response = json.loads(raw_response)
            members += len(response["members"])

        return members
def conversation_members ( self , conversation ) : members = 0 resource = self . RCONVERSATION_INFO params = { self . PCHANNEL : conversation , } raw_response = self . _fetch ( resource , params ) response = json . loads ( raw_response ) members += len ( response [ "members" ] ) while 'next_cursor' in response [ 'response_metadata' ] and response [ 'response_metadata' ] [ 'next_cursor' ] : params [ 'cursor' ] = response [ 'response_metadata' ] [ 'next_cursor' ] raw_response = self . _fetch ( resource , params ) response = json . loads ( raw_response ) members += len ( response [ "members" ] ) return members
Fetch the number of members in a conversation, which is a supertype for public and
        private ones, DM and group DM.

        :param conversation: the ID of the conversation
Fetch the number of members in a conversation which is a supertype for public and private ones DM and group DM .