This is an automated email from the ASF dual-hosted git repository. davidarthur pushed a commit to branch webhook in repository https://gitbox.apache.org/repos/asf/kafka-merge-queue-sandbox.git
commit e460f72ef10b6bdf86dc132a83e54280b156a772 Author: David Arthur <mum...@gmail.com> AuthorDate: Fri Aug 16 13:52:24 2024 -0400 add webhook receiver script --- webhook-receive.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/webhook-receive.py b/webhook-receive.py new file mode 100644 index 0000000..8482858 --- /dev/null +++ b/webhook-receive.py @@ -0,0 +1,12 @@ +from flask import Flask, request, jsonify + +app = Flask(__name__) +@app.route('/webhook', methods=['POST']) +def webhook_receiver(): + data = request.json # Get the JSON data from the incoming request + # Process the data and perform actions based on the event + print("Received webhook data:", data) + return jsonify({'message': 'Webhook received successfully'}), 200 + +if __name__ == '__main__': + app.run(debug=True, host='localhost', port=3000)