News
Webhooks
Webhooks

So, what do webhooks look like?

Webhooks can be implemented in many ways. Usually a webook is called via a HTTP request to a PHP page. As the technology is already ubiquitous it makes it an almost trivial technology to utilise.


Here are some examples of what a call to a webhook looks like:


My webhooks are implemented with the file webhooks.php which is on my server and can be called from anywhere in the world.

The usual PHP calling conventions are used:

   Anything after the '?' is decoded as a set of parameter names and values.

   A parameter name and value are seperated by a '='.

   Each parameter name and value pair is seperated by an '&'.


The webhooks that I've implemented through the IOTHA website have the following arguments:

I'll explain more about these later and show you how to implement them on your local network without the need for a website.


IFTTT allows you to set up webhooks and call them as shown in the final example, here it is used to switch on a TP-Link camera in my lounge (only if you know the secret key though).