This commit is contained in:
Guy Van Sanden 2025-02-12 12:21:57 +01:00
parent fd0e386792
commit 7af2455cb6

View File

@ -68,6 +68,7 @@ def sendmessage(target, message):
@app.route("/webhook/<id>", methods=['POST'])
def webhook_receiver(id):
print("Webhook id %s" % (id))
pprint(request.json)
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)