예제 #1
0
파일: api.py 프로젝트: chr0m1ng/lana-uesc
 def post(self):
     if 'params' in request.json:
         params = request.json['params']
         if 'date' in params:
             bot_sagres = Bot()
             return bot_sagres.UESC_Listar_Noticias(params)
         else:
             return 'request fora do padrao', 400
     else:
         return 'request fora do padrao', 400
예제 #2
0
파일: api.py 프로젝트: chr0m1ng/lana-uesc
 def post(self):
     bot_sagres = Bot()
     return bot_sagres.UESC_Listar_Resultados_Recentes()
예제 #3
0
파일: api.py 프로젝트: chr0m1ng/lana-uesc
 def post(self):
     bot_sagres = Bot()
     return bot_sagres.UESC_Listar_Noticias_Recentes()
예제 #4
0
파일: api.py 프로젝트: chr0m1ng/lana-uesc
 def post(self):
     bot_sagres = Bot()
     return bot_sagres.UESC_Listar_Editaisbens_Recentes()
예제 #5
0
파일: api.py 프로젝트: chr0m1ng/lana-uesc
 def post(self):
     bot_sagres = Bot()
     return bot_sagres.UESC_Listar_Departamentos()
예제 #6
0
파일: api.py 프로젝트: chr0m1ng/lana-uesc
 def post(self):
     bot_sagres = Bot()
     return bot_sagres.UESC_Listar_Cursos()
예제 #7
0
파일: api.py 프로젝트: chr0m1ng/lana-uesc
 def post(self):
     bot_uesc = Bot()
     return bot_uesc.UESC()