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.

    Prerequisites

    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.

    Prerequisites

    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 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 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
  • By Twilio
    Twilio Celebrates Black History Month BHM.jpg

    Black History Month is a celebration of the achievements and history of the members of the African Diaspora. There is a long history of innovation and courage in our history that often does not get the same time in the spotlight as other historical figures

    Black History Month in the US has its roots in the 1920s, when historian Carter Woodson created “Negro History Week”. He believed that preserving the stories of our history was key to survival and intellectual development, famously writing “if a race has no history, it has no worthwhile tradition, it becomes a negligible factor in the thought of the world, and it stands in danger of being exterminated.”

    Later on, members of the Black United Students group at Kent State University worked to expand Negro History Week into Black History Month, which was first celebrated in February of 1970. The celebration caught on quickly, and …

    Read More
  • By Phil Nash
    Build a WhatsApp chatbot with Ruby, Sinatra and Twilio Build a WhatsApp chatbot with Ruby, Sinatra and Twilio

    Chatbots are programs that communicate some way with humans. They can be very basic, responding to keywords or phrases, or use something like Twilio Autopilot to take advantage of natural language understanding (NLU) to provide a richer experience and build out more complicated conversations.

    In this tutorial we are going to see how easy it is to get started building chatbots for WhatsApp using the Twilio API for WhatsApp and the Ruby web framework Sinatra. Here's an example of the conversation we're going to build:

    Using the bot inside the WhatsApp application. First we ask for cats and get a cat picture and fact. Then we ask for dogs and get a dog picture and fact. Finally we ask the bot if it can do anything else and it says it only knows about dogs and cats.

    What you'll need

    To build your own WhatsApp bot along with this tutorial, you will need the following:

    Configure …

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