Code, Tutorials and Hacks
Sometimes, nothing beats a good old SMS. The delivery of an SMS is not reliant on the recipient having any form of connection to the internet. This makes it highly reliable when delivering critical notifications. In certain instances, such as Amber alerts, for example, these notifications need to be sent in bulk to a wide audience.
You might be wondering how difficult it would be to implement such a system. Well, with Twilio it’s actually a breeze. In this post, I will show you how to build a bulk SMS-sending application using Golang, powered by Twilio.
To follow this tutorial, you will need the following:
- A free Twilio account
- A Twilio phone number
- A phone that can send and receive SMS
- A basic understanding of Go
- Go 1.19
Set up the project
The first thing you need to do is to create a project directory and change …
Configuration management has always been a challenge for developers. It gets especially tricky when it comes to storing sensitive configuration values such as API keys, tokens, certificates, passwords etc. In this article, you will learn how to use HashiCorp Vault with C# .NET to manage your application’s secrets.
You'll need the following things in this tutorial:
- A free Twilio account
- A Twilio Phone Number with SMS capabilities.
- An OS that supports .NET (Windows/macOS/Linux)
- .NET 6.0 SDK (newer and older versions may work too)
- A code editor or IDE (Recommended: Visual Studio Code with the C# plugin, Visual Studio, or JetBrains Rider)
- Docker Engine (You can install the engine using Docker Desktop (Windows, macOS, and Linux), Colima (macOS and Linux), or manually on any OS.)
Let’s start by implementing a simple application to demonstrate the issue. It’s a simple .NET console application that sends a …
Different services deployed in your infrastructure could emit events that need to be delivered to your end users. Applications deployed on AWS often use Amazon Simple Notification Service (SNS) for inter-service and user communication. Twilio SendGrid provides APIs for delivering an exceptional email experience to your users. You can integrate SendGrid into your existing workflow to leverage its reliable and scalable email infrastructure.
In this post, learn how to integrate the AWS Simple Notification Service (SNS) with SendGrid to send emails to users. You will learn how to create an AWS Lambda function that subscribes to an SNS topic and sends emails using the SendGrid APIs on receiving a new message. Java language will be used to define the AWS Lambda Handler and the Twilio SendGrid Java library to work with the email APIs.
For this tutorial, you will need to set up Java on your system since it …
Twilio Flex natively supports sending and receiving messages from Facebook Messenger users. This guide showcases how to configure Facebook Messenger for Flex UI 2.x and Flex Conversations. Messages from Facebook Messenger will first flow into Twilio Studio before hitting Twilio Flex.
If you're using Flex Legacy Messaging, follow this guide instead. Also note that the integration of Facebook Messenger is currently in beta.
The internet has made the world a much smaller place. Not only can you chat with your loved ones in real-time, but you can also see them and experience an extra level of interaction that words fail to capture.
In this tutorial, I will show you how simple it is to build a video chat app using Twilio Video, using Svelte for the frontend and Golang for the backend.
To follow this tutorial, you will need the following:
The process flow of the application is as follows:
- The frontend displays a form that allows the user to specify a room name.
- The room name provided by the user is then passed to the backend.
- Using this room name, the backend will then generate and return an Access Token containing …
Twilio Conversations makes it easy to add messaging to your applications using Twilio's SDKs and APIs. But presenting a chat dialogue in your product or on your website is only half of the battle. You also need to build a chat interface for your agents to interact with.
In this tutorial, you’ll use the Twilio Conversations JS SDK to add bidirectional messaging capabilities to an agent portal built in Retool. Retool is a development platform for internal tools. Together, Twilio Conversations and Retool provide a powerful and easy-to-use toolkit to build custom chat-enabled internal applications.
Want to add Twilio Voice to a Retool app? Check out this blog post!
The Twilio helper library for ASP.NET (Twilio.AspNet) is a community-driven open-source project to make integrating Twilio with ASP.NET easier, for both ASP.NET Core and ASP.NET MVC on .NET Framework. The library helps you achieve common use cases and with the release of version 7, we're expanding the library's capabilities and improving existing features.
Wondering what was previously introduced? You can read about v6 and prior releases here.
What's new in Twilio.AspNet v7.0.0
V7.0.0 is a major release of the Twilio.AspNet library because it contains breaking changes.
Here's an overview of the changes:
🎉 NEW FEATURES
- You can now use the
ValidateTwilioRequestFilterto validate that HTTP requests originate from Twilio. This adds validation to endpoints including Minimal APIs.
- You can also use the new
ValidateTwilioRequestMiddlewareto validate Twilio requests for when you can't use the
[ValidateRequest]attribute or the
- There are new overloads for the
TwiMLResultconstructor and …
I can say from experience that ADHD adds several layers of complexity to life on an already chaotic and distracting planet, and while we need all the help we can get, it’s often difficult to find tools that you stay in the habit of using and that actually help.
By building your own, not only will you be able to have a tool built custom for your brain, but the satisfaction of building something may encourage you to keep using and optimizing it!
In this tutorial, we'll be building three helpful tools:
- An SMS task-inbox-and-notetaking app
- A die roll app for moments of indecision
- A timer that texts you when time is up
The theme of the project examples in this post are all about getting things out of your head, and getting yourself out of your own head, two very common challenges for ADHD brains.
How will these apps …
In messaging compliance, it is important to remember that you are always playing defense. Setting up a compliant messaging program from the start will make sure that you don’t get dinged by the carriers in the long term.
Filtering is often, though not always, driven by how customers are receiving (or not receiving) messages. If a sender is trying to message a lot of numbers that are landlines because they do not have a clear opt-in flow, the carriers will be more likely to filter. If customers are opt-ing out or marking as spam at high rates, carriers, again, will be more likely to filter. If your method of collecting consent is clean, content is wanted, and sender identification is clear, the likelihood of filtering is low.
In this article, I will provide recommendations to help you set up a good defensive line from the start with these messaging …
A common use case when sending emails is to add images to them. You may want to include your company logo as a heading, or maybe make a point in a way that can only be done with a GIF meme. But if you search how to do this you will find that there isn’t clear and concise information out there. In this article I’m going to show you what your options are if you want to include images or GIFs in your emails when using SendGrid with Python.
To work on this tutorial you will need the following items: