Wes Mason
$('.button').click(function() { $.ajax(...); });
GET /svc/users/:id Cookie: session=blah Content-Type: application/json Accept: ...
Content-Type: application/json Content-Length: 14 X-Barium: foobar Connection: close {"foo": "baz"}
# import requests, import pymongo # setup collection etc. etc. hooks = webhook_collection.find({"account_id": id}) if data and len(data) > 0: for hook in hooks: requests.post(hook["url"], data)