def __init__(self, user=None, password=None, auth_token=None, user_id=None,<EOL>server_url='<STR_LIT>', ssl_verify=True, proxies=None,<EOL>timeout=<NUM_LIT:30>):
self.headers = {}<EOL>self.server_url = server_url<EOL>self.proxies = proxies<EOL>self.ssl_verify = ssl_verify<EOL>self.timeout = timeout<EOL>if user and password:<EOL><INDENT>self.login(user, password)<EOL><DEDENT>if auth_token and user_id:<EOL><INDENT>self.headers['<STR_LIT>'] = auth_token<EOL>self.headers['<STR_LIT>'] = user_id<EOL><DEDENT>
Creates a RocketChat object and does login on the specified server