def __init__(self, password, login='admin', ip='127.0.0.1',
                 printErrors=False, ca_cert=None):
        """ Function __init__
        Init the API with the connection params

        @param password: authentication password
        @param password: authentication login - default is admin
        @param ip: api ip - default is localhost
        @return RETURN: self
        """
        self.base_url = 'http://{}/api/v2/'.format(ip)
        self.headers = {'Accept': 'version=2',
                        'Content-Type': 'application/json; charset=UTF-8'}
        self.auth = (login, password)
        self.ca_cert = ca_cert
        self.history = []
        self.clearReqVars()
def __init__ ( self , password , login = 'admin' , ip = '127.0.0.1' , printErrors = False , ca_cert = None ) : self . base_url = 'http://{}/api/v2/' . format ( ip ) self . headers = { 'Accept' : 'version=2' , 'Content-Type' : 'application/json; charset=UTF-8' } self . auth = ( login , password ) self . ca_cert = ca_cert self . history = [ ] self . clearReqVars ( )
Function __init__
        Init the API with the connection params

        @param password: authentication password
        @param password: authentication login - default is admin
        @param ip: api ip - default is localhost
        @return RETURN: self