api = MainApi()
api.verifyUser(email, password)
verifyUser
методом классаclass MainApi(object):
server = 'http://127.0.0.1:8000'
@classmethod
def verifyUser(cls, email, password):
#тут параметры и тд
r = requests.get(cls.server + '/api/login/verifyuser/', params=req_params)
return r.json()