def __init__(self, token=None, auth_test=False, verify=True, lazy=False):
        """
        Instantiation an instance of the Slack API

        Args:
            token: {str} (required) API token, read from SLACK_TOKEN env var
            auth_test: {bool} verify this token
            verify: {bool} verify all API calls return with a True 'ok'
            lazy: {bool} Don't populate properties until called
        """

        try:
            self.token = token if token else os.environ['SLACK_TOKEN']
        except KeyError:
            raise ValueError('If not providing a token, must set SLACK_TOKEN envvar')
        if auth_test:
            response = self.auth_test()
            if not response['ok']:
                raise ValueError('Authentication Failed with response: {}'.format(response))
        self.verify = verify

        # Attributes backing properties
        self._channels = []
        self._users = []

        if not lazy:
            _ = self.channels
            _ = self.users
def __init__ ( self , token = None , auth_test = False , verify = True , lazy = False ) : try : self . token = token if token else os . environ [ 'SLACK_TOKEN' ] except KeyError : raise ValueError ( 'If not providing a token, must set SLACK_TOKEN envvar' ) if auth_test : response = self . auth_test ( ) if not response [ 'ok' ] : raise ValueError ( 'Authentication Failed with response: {}' . format ( response ) ) self . verify = verify self . _channels = [ ] self . _users = [ ] if not lazy : _ = self . channels _ = self . users
Instantiation an instance of the Slack API

        Args:
            token: {str} (required) API token, read from SLACK_TOKEN env var
            auth_test: {bool} verify this token
            verify: {bool} verify all API calls return with a True 'ok'
            lazy: {bool} Don't populate properties until called