def post(self): if 'params' in request.json: params = request.json['params'] if 'sagres_username' in params and 'sagres_password' in params: bot_sagres = Bot() return bot_sagres.Sagres_Listar_Notas(params) else: return 'request fora do padrao', 400 else: return 'request fora do padrao', 400
def post(self): if 'params' in request.json: params = request.json['params'] if 'sagres_username' in params and 'sagres_password' in params and 'codigo_disciplina' in params: bot_sagres = Bot() return bot_sagres.Sagres_Listar_Alunos_Turma(params) else: return 'request fora do padrao', 400 else: return 'request fora do padrao', 400
def post(self): bot_sagres = Bot() return bot_sagres.Sagres()