This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Last revision Both sides next revision | ||
developers:general:webhooks [2014/10/18 07:00] Jaco van Wyk [Sample webhook code (Python - Flask)] |
developers:general:webhooks [2017/06/27 06:18] Jaco van Wyk [Setting up webhooks] |
||
---|---|---|---|
Line 11: | Line 11: | ||
Webhooks can be enabled in SnapBill inside our Apps section. Once enabled it is trivial to add new webhooks and view recent actions from our Setup section. | Webhooks can be enabled in SnapBill inside our Apps section. Once enabled it is trivial to add new webhooks and view recent actions from our Setup section. | ||
- | The easiest way to test out webhooks is with http://requestb.in and http://jsbeautifier.org/. Simply create a new bin on the requestb.in site, and enter the URL they give you in SnapBill. Once a webhook has been sent through, you should see it if you refresh the requestb.in page. The data comes through in an ugly format, but if you paste the entire 'body' into jsbeautifier, it will clean it up for you. | + | The easiest way to test out webhooks is with https://www.runscope.com/docs/request-capture and http://jsbeautifier.org/. Simply create a new bin on the Runscope site, and enter the URL they give you in SnapBill. Once a webhook has been sent through, you should see it if you refresh the Runscope page. The data comes through in an ugly format, but if you paste the entire 'body' into jsbeautifier, it will clean it up for you. |
===== Sample webhook code (PHP) ===== | ===== Sample webhook code (PHP) ===== |