def post(self):
''' process threat-intel and conditionally alert user as threat notification '''
try:
parser = reqparse.RequestParser()
parser.add_argument('score', type=int, location='json')
parser.add_argument('threat_data', type=json_encode, location='json')
args = parser.parse_args()
# return jsonify(
# score = args['subject'],
# threat_data = json_decode(args['threat_data'])
# )
return jsonify(
status = 200,
message = 'Email delivery success'
)
except Exception as e:
return {'status' : str(e)}
评论列表
文章目录