Build the future of communications.
Start Building for Free

Code, Tutorials and Hacks

  • By Oluyemi Olususi
    Send Bulk SMS With Go and Twilio Send Bulk SMS  With Go and Twilio

    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.

    Prerequisites

    To follow this tutorial, you will need the following:

    Set up the project

    The first thing you need to do is to create a project directory and change …

    Read More
  • By Volkan Paksoy
    How to get secrets from HashiCorp Vault into .NET configuration with C# Get secrets from HashiCorp Vault into .NET configuration with C#

    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.

    Prerequisites

    You'll need the following things in this tutorial:

    Problem Statement

    Let’s start by implementing a simple application to demonstrate the issue. It’s a simple .NET console application that sends a …

    Read More
  • By Vivek Kumar Maskara
    How to Integrate AWS Simple Notification Service (SNS) with Twilio SendGrid header - How to Integrate AWS Simple Notification Service (SNS) with Twilio SendGrid

    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.

    Prerequisites

    For this tutorial, you will need to set up Java on your system since it …

    Read More
  • By Leroy Chan
    Flex 2.0: Configure Facebook Messenger with Flex Conversations facebook-messenger-flex-conversations

    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.

    Requirements

    Before you can complete this tutorial, you'll need to set up a few things:

    1. Twilio Flex Account with Console Access
    2. Twilio CLI installed (v5.2.1 or above) along with Node.js
    3. Facebook Page (Ready to be integrated)

    Step-by-Step Guide

    1. Step 1: Install and C …
    Read More
  • By Joseph Udonsak
    How to Use Svelte and Go to Build a Video Chat App Main tutorial image for the "How to Use a Svelte and Go to Build a Video Chat App" tutorial

    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.

    Prerequisites

    To follow this tutorial, you will need the following:

    Getting started

    Brief Overview

    The process flow of the application is as follows:

    1. The frontend displays a form that allows the user to specify a room name.
    2. The room name provided by the user is then passed to the backend.
    3. Using this room name, the backend will then generate and return an Access Token containing …
    Read More
  • By Evan Weiss
    How to embed Twilio Conversations in a Retool app for bidirectional messaging Embed Twilio Conversations in Retool for bidirectional messaging

    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.

    A user interface screenshot showing an in-progress chat conversation between a customer and an agent. SMS settings are displayed on the left, a chat window is displayed in the middle, and an emoji picker is displayed on the right.

    Want to add Twilio Voice to a Retool app? Check out this blog post!

    Prerequisites

    Read More
  • By Niels Swimberghe
    What's new in the Twilio helper library for ASP.NET (v7.0.0 - November 2022) What's new in the Twilio helper library for ASP.NET (v7.0.0 - November 2022)

    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 ValidateTwilioRequestFilter to validate that HTTP requests originate from Twilio. This adds validation to endpoints including Minimal APIs.
    • You can also use the new ValidateTwilioRequestMiddleware to validate Twilio requests for when you can't use the [ValidateRequest] attribute or the ValidateTwilioRequestFilter.
    • There are new overloads for the TwiMLResult constructor and …
    Read More
  • By Nick Piegari
    How to Build ADHD Lifehack Tools with Python, Google Sheets, and Twilio SMS How to Build ADHD Lifehack Tools with Python, Google Sheets, and Twilio SMS

    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 …

    Read More
  • By Michelle Desien
    How to Achieve Messaging Compliance by Playing Strong Defense Copy of C03 Blog Text (2)

    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 …

    Read More
  • By Miguel Grinberg
    Send Emails with Embedded GIFs and Images with SendGrid and Python Send Emails with Embedded GIFs and Images with SendGrid and Python

    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.

    Requirements

    To work on this tutorial you will need the following items:

    • Python 3.6 or newer. If your operating system does not provide a Python interpreter, you can go to python.org to download an installer.
    • A SendGrid account. If you are new to SendGrid, click here to create a free account. A free SendGrid account allows you to send up …
    Read More
  • Newer
    Older
    Sign up and start building
    Not ready yet? Talk to an expert.