This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
developers:general:webhooks [2014/10/18 07:00] Jaco van Wyk [Sample webhook code (Python - Flask)] |
developers:general:webhooks [2019/04/15 13:17] 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://beeceptor.com/ and http://jsbeautifier.org/. Simply create a new endpoint on the Beeceptor site, and enter the URL they give you in SnapBill. Once a webhook has been sent through, you should see it auto refresh on the Beeceptor 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) ===== |