These are a few notes, because GF gives us ability to register webhook listeners here: https://api.gfc-staging.com/api_management/api_post_hooks

So, save this in listener.py (and read this: https://ogma-dev.github.io/posts/simple-flask-webhook/):

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':
print(request.json)
return '', 200
else:
abort(400)


if __name__ == '__main__':
app.run()

Then run "python listener.py"

Then download "postman" from here: https://www.getpostman.com/apps, and read this: https://support.brightcove.com/use-postman-api-requests#postRequest

Start up Postman, and do New Request, POST, URL is http://127.0.0.1:5000/, 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.