This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
developers:general:webhooks [2017/06/27 06:18] Jaco van Wyk [Setting up webhooks] |
developers:general:webhooks [2019/04/15 13:17] (current) 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 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. | + | 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) ===== |