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 Len Shneyder
    TWILIO STUDY: Presidential Campaigns Are Not Hitting Their Mark With Their Email Outreach Presidential Campaign Email Study.png

    If it feels like today’s election season has neither an end, nor a beginning, you may not be far off the mark. The 2020 presidential campaign kicked off barely minutes after the 2018 midterm elections. Between the start of 2019 through this fall, the field of presidential candidates plus the incumbent swelled to 26 individuals running for the top job in the country. As we head into Q4, the field has narrowed a bit on the Democratic side. However, the one thing that has remained constant since the beginning is that these candidates use email to engage potential voters, raise campaign contributions and educate subscribers about their platforms and messages.

    Between July and August of 2019 we decided to take a close look at how political campaigns leverage email as part of their digital strategy. Our methodology was simple but effective given the diverse group of candidates. We set up …

    Read More
  • By Sam Agnew
    Updating Twilio phone calls in real time with Node.js Copy of Generic Blog Header 2.png

    Twilio use TwiML to programmatically define the actions that take place during a phone call. But this doesn't have to be a rigid script that every call follows. You can also use the Twilio REST API to update these phone calls in real time.

    For example, given a Call SID, a unique identifier to a phone call resource, you can redirect which TwiML the phone call is using with the following code:

    const client = require('twilio')();
    
    client.calls('CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
      .update({method: 'POST', url: 'http://demo.twilio.com/docs/voice.xml'})
    

    Let's walk through how to set up a Twilio phone number to receive phone calls, and test this out for yourself.

    Development Environment Setup

    Start by making sure you have the right software installed and set up that you'll need to use for the rest of this post. Throughout this post, you will need: …

    Read More
  • By Sam Agnew
    Updating Twilio phone calls in real time with Python Copy of Generic Blog Header 4.png

    Twilio use TwiML to programmatically define the actions that take place during a phone call. But this doesn't have to be a rigid script that every call follows. You can also use the Twilio REST API to update these phone calls in real time.

    For example, given a Call SID, a unique identifier to a phone call resource, you can redirect which TwiML the phone call is using with the following code:

    from twilio.rest import Client
    
    client = Client('ACCOUNT_SID', 'AUTH_TOKEN')
    
    call = client.calls('CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
    call.update(method='POST', url='http://demo.twilio.com/docs/voice.xml')
    

    Let's walk through how to set up a Twilio phone number to receive phone calls in Python, and test this out for yourself.

    Development Environment Setup

    Start by making sure you have the right software installed and set up that you'll need to use for the …

    Read More
  • By Charles Oduk
    Create Transactional Emails you can Reply to in PHP with Twilio SendGrid Inbound Parse Replyable Transactional Emails in PHP with Twilio SendGrid Inbound Parse

    You’ve probably received many emails sent in the format noreply@somedomain.com. The irony of no-reply emails are that they often contain information that we would like to respond to. It would be great for businesses sending transactional emails to empower customers to respond to these emails.

    Allowing replies to transactional emails is now possible with Twilio SendGrid. This tutorial will teach you how to use Twilio SendGrid Inbound Parse to place a second order to a mock e-commerce store, by replying to a transactional email.

    Tutorial Requirements

    This tutorial will require the following dependencies:

    Create a Development Environment

    From your console window, create a new project directory. Add three files to the newly created directory:

    • Webhook.php
    • Email.php
    • .env
    $ mkdir SendGrid && cd SendGrid
    $ touch Webhook.php Email.php .env
    

    Install Dependencies

    This project will require …

    Read More
  • By Miguel Grinberg
    Introducing Python Developer Miguel Grinberg Miguel Grinberg

    Hello everyone, my name is Miguel Grinberg, and I am super excited to join the Developer Voices team at Twilio.

    I have a Masters degree in Computer Science, and for the last few years I’ve been active in open source, mostly within the Python community. I live in a small rural village in Ireland. This is the peaceful and relaxing view that I have from my home office window:

    The view from my home office window

    I Love Code

    The main thing you need to know about me is that since my teenage years I have been a coder, and the more I code the more I like it.

    I learned to code writing video games in the BASIC programming language, on Texas Instruments and Commodore home computers. In those pre-Internet days there wasn’t much of a choice in computer languages, so after being unhappy with the lag in some of my BASIC games I taught myself …

    Read More
  • By Jess Seok
    New Rich Features Support Deeper Customer Engagement on WhatsApp New rich messaging features support deeper customer engagement on Twilio API for WhatsApp

    In August 2018, we launched the Twilio API for Whatsapp, enabling developers to reach their users directly in Whatsapp, using the same API they use for SMS. With over 1.6 billion monthly active users on WhatsApp, the Twilio API for Whatsapp allows you to meet your users where they are, in countries across LATAM, EMEA, and Southeast Asia where Whatsapp is the default messaging medium. 

    Starting today, the Twilio API for WhatsApp supports read receipts and location messages, making one of the most popular rich messaging applications even more powerful.

    Deliverability Insights to Improve Campaigns

    In the world of SMS, insight into messaging often stops at deliverability. If you’re already building on the Twilio platform, you’ve likely used status callbacks or delivery receipts (DLRs) to help understand the efficacy of your messaging application. But that information can only go so far. You can see whether the message was accepted …

    Read More
  • By Felistas Ngumi
    Serverless SMS Messaging using JavaScript and Twilio Functions Serverless SMS Messaging using JavaScript and Twilio Functions

    Function As A Service is a solution that allows developers to develop, deploy, and run event-driven functions in the cloud that are fully managed. Without the need for maintaining infrastructure, "serverless" architecture is achieved. In this tutorial, you will learn how to send Twilio Programmable SMS using the new Twilio CLI.

    Project Setup

    You will need the following items in order to get started:

    1. A Twilio account
    2. Twilio CLI
    3. Node Version 8 and above.

    Getting Started

    First, install the Twilio CLI. I'm currently using version 1.8.1. Run the following command in your preferred terminal if on a Mac:

    $ brew tap twilio/brew && brew install twilio
    

    If you are on a different platform, you can find the setup instructions here.

    To confirm a successful installation of the CLI has occurred, type twilio in a new terminal session and the output below should appear.

    Twilio CLI console

    Login to your Twilio account by …

    Read More
  • By Charlie Weems
    Building a Disaster Response Contact Center with Twilio Flex Copy of Generic Blog Header 4.png

    What would you do if you had 48 hours before a major hurricane makes landfall nearby? You’d probably buy water and food, or maybe even evacuate to another location. Building a contact center might not be the first thing that comes to mind, but communications are more important than ever in a disaster. In the crucial few moments immediately before and after disasters strike, a developer who can rapidly build and deploy a contact center can literally save lives and help ensure people at risk can get the help they need right when they need it.

    While many communities already have disaster plans in place, the scale and frequency of natural disasters has increased to the point where local nonprofits, communities, and even individual volunteers can find themselves in the thick of things needing to scale up a contact center in hours, not days or months.

    In this post, we’ll …

    Read More
  • By Kedar Toraskar
    Announcing General Availability of Twilio Narrowband General Availability Twilio Narrowband

    We are excited to announce: Twilio Narrowband is now Generally Available (GA). 

    Twilio Narrowband is the first developer platform in the United States that provides access to the T-Mobile Narrowband (or NB-IoT) network. T-Mobile USA is the first network to deploy NB-IoT in the U.S. and today its network is operational nationwide. The Twilio Narrowband platform includes narrowband SIMs, a developer kit, and a breakout SDK, all designed to work with the T-Mobile NB-IoT network.  

    What is Narrowband IoT (or NB-IoT)?

    NB-IoT is a Low Power Wide Area (LPWA) network technology that is purpose built for IoT, which means it can handle massive numbers of connected devices and is able to achieve deeper penetration of cellular coverage. It is specifically designed for the majority of IoT devices that don't need a lot of bandwidth, are insensitive to latency and need to conserve battery power for a long period of time. …

    Read More
  • By Jessica Diedrich
    Ann Arbor District Library Reimagines the Summer Reading Program with SMS AADL header

    Are you part of a nonprofit or social enterprise that wants to build things for social good? Twilio.org offers credits and discounts to help you get started! Learn more.

    Based in Ann Arbor, Michigan, the Ann Arbor District Library serves over 160,000 residents from diverse socioeconomic backgrounds. In addition to offering access to borrowing books, DVDs, and educational materials, the library hosts hundreds of events per year and a summer reading program for kids.

    The summer reading program has long been a staple summer activity for children, but a few years ago, library staff found that the program wasn’t keeping kids engaged throughout the summer. Eli Neiburger, Deputy Director at the District Library explains, “Kids only had to read 10 books and then they were done reading for the summer. Some kids were completing the program in just a few days. The program was having the opposite of its …

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