A demonstration of connecting to IfThisThenThat (ifttt.com) in order to generate events or receive them from your code.
Here's a video on YouTube which explains the code and how to do the connection, click the image to watch it. It's very easy no matter whether you're hoping to send events to IFTTT or receive them.