Company
Date Published
Author
Ralf Schiffert
Word count
2654
Language
English
Hacker News points
None

Summary

This article explains how to integrate Twilio Monitor with HipChat, a collaboration tool. To do this, three steps are required: create a HipChat room for the alerts system, establish a way to programmatically post messages to the HipChat room, and configure Twilio Monitor to make webhook calls to expose alerts in the HipChat room. The process involves creating a PHP page that receives and responds to Twilio webhooks, converts the Twilio alert parameters into a JSON object suitable for posting to HipChat, and sends this message to the HipChat API using curl. Ngrok is used to expose the local server to the internet, allowing Twilio to call the PHP page when an error occurs in the application. The final step involves configuring Twilio Monitor to trigger webhooks to the PHP page, which posts messages to the HipChat room, providing a real-time monitoring and alerting system for Twilio applications.