def authenticate(self, auth_method, **kwargs):
        if auth_method == 'cookie':
            return self._auth_cookie(**kwargs)
        elif auth_method == 'basic':
            return self._auth_basic()
        else:
            raise AttributeError('No authentication method for ' + auth_method)
Authenticate using method given.
dataset/ETHPy150Open MediaMath/t1-python/terminalone/service.py/T1.authenticate