This will fade out
@app.route("/callback", methods=["POST"]) def callback(): """ LINE bot webhook callback """ # get X-Line-Signature header value signature = request.headers["X-Line-Signature"] print(signature) body = request.get_data(as_text=True) print(body)
@app.route("/callback", methods=["POST"]) def callback(): """ LINE bot webhook callback """ # get X-Line-Signature header value signature = request.headers["X-Line-Signature"] print(signature) body = request.get_data(as_text=True) print(body) try: HANDLER.handle(body, signature) except InvalidSignatureError: print( "Invalid signature. Please check your channel access token/channel secret." ) abort(400) return "OK"
code 1 code 2
code 1 code 2 code 3 ... ...