These are a few notes, because GF gives us ability to register webhook listeners here:

So, save this in (and read this:

import sys
from flask import Flask, request, abort

app = Flask(__name__)

@app.route('/', methods=['POST'])
def webhook():
print("webhook"); sys.stdout.flush()
if request.method == 'POST':
return '', 200

if __name__ == '__main__':

Then run "python"

Then download "postman" from here:, and read this:

Start up Postman, and do New Request, POST, URL is, in Body select "raw" and JSON, and put this in: {"id" : "1123"}, and his SEND, and the webhook listener will print {'id': '1123'}.

That's pretty easy. The hard part is creating say an Amazon EC2 server and opening that up to the world to listen for events. I'll think about that tomorrow night, I've got some Star Trek to catch up on.