def getSabAccesMethod(host=None):
 params = {u'mode': u'auth', u'output': u'json'}
 url = urljoin(host, u'api')
 data = helpers.getURL(url, params=params, session=session, returns=u'json', verify=False)
 if (not data):
  return (False, data)
 return _checkSabResponse(data)

def getSabAccesMethod ( host = None ) : params = { u'mode' : u'auth' , u'output' : u'json' } url = urljoin ( host , u'api' ) data = helpers . getURL ( url , params = params , session = session , returns = u'json' , verify = False ) if ( not data ) : return ( False , data ) return _checkSabResponse ( data )
find out how we should connect to sab .