Level up your Twilio API skills in TwilioQuest, an educational game for Mac, Windows, and Linux. Download Now
Build the future of communications.
Start building for free
  • By Dotun Jolaoso
    How to build a Laravel Twilio Package for SMS How to Build a Laravel Twilio Package

    I recently realized that every time I had to do an integration with Twilio for sending SMS in a Laravel project, I used a custom wrapper around the Twilio PHP library to help me simplify the process. However, this became a bit monotonous for me as I always had to copy and paste this wrapper every time I was starting a new Laravel project. In this tutorial, you’ll join me in learning how to build a Laravel Twilio Package to eliminate copying and pasting and benefit from package management. This will also allow other developers such as yourself to make use of this package.

    Technical Requirements

    To complete this tutorial, you will need the following:

    Setting up a New Package

    We’ll be using Composer to set up the package. From the terminal, cd into your project’s directory and run the following command:

    $ composer init

    This …

    Read More
  • By Chuks Opia
    Implementing real-time data visualization in Node.js with Twilio Sync real-time-data-viz-node-sync (1).png

    In today’s world, almost every existing application is a real-time app. From chat apps, online games, ride-hailing apps, to collaboration tools, users expect to see instant updates as other users interact with the application. This goes to show that application state synchronization is important in building modern and interactive applications.

    Twilio Sync offers a state synchronization API for managing synchronized application states at scale across multiple devices and users.

    In this post you will learn how to add real-time functionality to a Node.js application using Sync. You will be building a sports survey application that shows the results of the survey in real time.


    To build the case study project for this post you need to have the following development tools installed on your system:

    • Node.js JavaScript runtime environment
      (The Node.js installer includes the npm package manager, which is also required.)
    • Twilio account – Sign up for a free …
    Read More
  • By Brian Iyoha
    Increase User Engagement by Sending Out Periodic Emails with Laravel, PHP, and SendGrid Increase User Engagement by Sending Out Periodic Emails with Laravel, PHP, and SendGrid

    In this tutorial, we will look at how we can send out periodic emails in a Laravel application using Twilio SendGrid.


    In order to follow this tutorial you will need:

    Project setup

    Start off by creating a new Laravel project for your application. This can be done either by using the Laravel installer or Composer. For this tutorial, the Laravel installer will be used. If you don't have the Laravel installer already installed, head over to the Laravel documentation to see how to. If installed, open up a terminal and run the following command to create a new Laravel project:

    $ laravel new periodic-emails

    Next, you need to install the Sendgrid PHP Library which will be used for communicating with the SendGrid service. Open up a …

    Read More
  • By David Fundakowski
    Routing Incoming Phone Calls with Twilio Programmable Voice, Python and Django Routing Incoming Phone Calls with Twilio Programmable Voice, Python and Django

    Call routing is an incredibly powerful tool for managing inbound calls, whether it be for personal or professional use. A person can route a call from VIP clients to a specific number, a call from their mother to a personal cell phone, and play a joke audio clip for their best friend when they call. This is the power of Twilio Programmable Voice.

    In this tutorial, you will be setting up a Django project using virtual environments, creating a free Twilio account, provisioning a phone number, and finally, routing inbound calls based on the caller, to do things like play a recording, use text-to-speech to speak something, or forward the call to a personal cell phone.

    By the end of this tutorial, you will be able to:

    • Set up a free Twilio account
    • Identify inbound calling numbers using Twilio Programmable Voice in a Django app
    • Answer phone calls using TwiML …
    Read More
  • By Miguel Grinberg
    Serverless Phone Number Validation with AWS Lambda, Python and Twilio Serverless Phone Number Validation with AWS Lambda, Python and Twilio

    If your application requests phone numbers from your users, it’s a good idea to ensure that the numbers they provide are valid. The Twilio Lookup API provides an easy way to obtain information about any phone number, such as validity, carrier, line type, and even caller ID information for certain numbers in the United States.

    In this article, you will learn how to build a simple serverless function that performs phone validations. The application will be hosted on the AWS Lambda serverless platform and will be written in Python. Even if phone validation isn’t your thing, you will find that the techniques presented in this article can be applied to other APIs from Twilio or even other service providers.

    Tutorial Requirements

    To follow this tutorial you need the following items:

    Read More
  • By Philip Obosi
    Building a WhatsApp Recipe Bot with Python, Flask, MongoDB and Twilio Building a WhatsApp Recipe Bot with Python, Flask, MongoDB and Twilio

    Our world as it is today has experienced remarkable growth in various fields and aspects of life due to the consistent and creative distribution of information across various media.

    In this article, we use the Twilio API to build an application that provides information on food and recipes to users over WhatsApp. This approach to accessing information will definitely feel more fun and natural to food lovers and chefs with WhatsApp installed on their phones.

    User Journey

    A user sends a message containing  the name of a particular recipe he/she is interested in learning about or preparing and receives a response with instructions to be followed to prepare the meal.

    recipe bot demo

    Tutorial Requirements

    To follow this tutorial, you are expected to:

    • Have sufficient understanding of Python and Flask
    • Have Python 3 installed on your machine
    • Have MongoDB installed on your machine
    • Have Ngrok installed on your machine
    • Have a smartphone with …
    Read More
  • By Len Shneyder
    Efforts Ramp Up to Strengthen Wanted Campaign Communications Efforts Ramp Up

    Election security means different things to different people. Cyber security personnel may think of election security as locking down access to voting machines. Other experts in the field may focus their attention on securing systems that are critical to the day to day operations of organizing elections, such as email and other communication channels, as a means of shrinking the attack surface of our elections. Whatever the focus, one thing rings absolutely true: maintaining free, fair and credible elections in democracies around the world is absolutely key to ensuring the survival of those democracies. With that in mind we can all agree that election security is crucial and complicated given the inherent complexities that lay across every aspect of communications, systems, hardware and the software that powers today’s internet.

    Twilio sits in an interesting spot in the complex and layered framework of elections in the United States. As the world’s …

    Read More
  • By Dotun Jolaoso
    How to Validate Phone Numbers using Python, Azure Functions and Twilio How to Validate Phone Numbers using Python, Azure Functions and Twilio

    Phone number validation is the process of verifying a phone number is valid and in the right format. It’s an important aspect and a popular measure for applications and services that deal with collecting phone numbers from users. In this tutorial we’ll use Python and Azure Functions to develop a simple serverless HTTP function that integrates with Twilio’s Lookup API to validate phone numbers.

    Technical Requirements

    To follow along, you’ll need the following:

    Set up an Azure Function App

    To get started, we need to create an …

    Read More
  • By Stuart Logan
    Bring Live Transcription to Your Existing PABX live-transcribe-pabx.png

    I often find myself in conversations with customers who are unsure about where to start with Twilio and their PABX. They have a great idea to improve customer experience, but they usually have an existing PABX that doesn't allow them to innovate at the speed they need to differentiate.

    Most start to plan how they can retire their existing estate. Quickly, they realize that it is going to be an uphill battle. Many then resign themselves to the "that's just how it is" mentality, log a feature request with their existing vendor, and then hope that enough other customers want the same feature that the vendor builds it.

    But what if there was another way? With Twilio Programmable Voice, you can keep your existing PABX and introduce cutting edge features and technology into a roadmap that you own.

    The Problem: Lack of Real-Time Transcription

    I faced this situation with …

    Read More
  • By Nader Attar
    Twilio Sydney Interconnect Exchange is Live with Continued Expansion in APAC image (6).png

    Private connections guarantee quality, security, and network performance. For businesses looking for these factors, Twilio’s Interconnect is the answer. Interconnect was built for the customers who need quality of service and secure network performance. Twilio is committed to expanding our global coverage of private network connectivity locations, providing our customers with better call quality options around the world.

    A few months ago we launched a new Interconnect Exchange in Europe. We are taking that momentum and expanding into other regions like the Asia Pacific.

    Now, we are excited to announce the expansion of Interconnect exchange in APAC with the addition of a new location in Sydney, Australia, AU1. The new exchange provides customers with connectivity via cross-connect, VPN, Bring-Your-Own-MPLS, and the Equinix Cloud Exchange with initial product support for Elastic SIP Trunking, SIP Interface, and Voice WebRTC.

    Twilio Interconnect Benefits

    If voice quality is mission-critical to your business, Interconnect …

    Read More
  • Newer
    Sign up and start building
    Not ready yet? Talk to an expert.