![]() This means that when someone texts or calls your Twilio number, an HTTP POST request will get sent to a URL you define with information about the text or call, letting you process, handle, or reply to it automatically. I love that I can interact with my application the same way I do with most my friends: text message!īut the best part of all is that Twilio lets you set up webhooks for when you get a text message or phone call. I love that a few lines of code can make the phone in my pocket start buzzing. ![]() The Twilio API is one of my favourite APIs of all time, because they make it super easy to marry the physical world with the software world. I think the easiest way to explain this is with examples: 1. It makes the web capable of pushing information to its users, instead of waiting for users to ask for information. It enables the web to start being aware of events, to respond to things without user interaction. All they are is a promise by an application or API: “when this thing happens, I’ll send this HTTP request with this data.” That simple promise opens up a lot of opportunities, though. I want everyone to see the awesome potential this architecture enables.įor the uninitiated, webhooks are simply a pattern for an evented web. I want to show off the power of webhooks for any doubters out there. I watch people poll APIs or create convoluted connections, and I cry a little on the inside. I go to hackathons and show them to people, and can almost see their brain as it explodes. But sometimes, I forget that not everyone knows how amazing webhooks are. They remind me of Unix pipes: pass in some data as a string, and any program that knows how to get the data out of the string automatically gains the ability to use that data. I love the flexible, open architecture webhooks enable. When asked what my favourite features of the Iron.io platform are, our webhook support tend to top my list. (Did you know you can create a message or a task using webhooks, and use push queues as webhooks?) Around the Iron.io office, I’m known as a bit of a webhook enthusiast.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |