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 Miguel Grinberg
    How to Send an MMS with Python How to Send an MMS with Python

    Twilio is all about powering communication and doing it conveniently and fast in any language.  

    With the help of Twilio and Python, you can deliver a quick media message to someone without having to pick up your mobile device.

    In this article, you'll be writing a short Python program to send an MMS in an insanely fast manner. So why wait? Let's get started!

    Tutorial requirements

    Configuration

    We’ll start off by creating a directory to store the files of our project. Inside your favorite terminal, enter:

    $ mkdir python_mms
    $ cd python_mms
    

    Following Python best practices, you are now going …

    Read More
  • By Miguel Grinberg
    Email Address Verification in FastAPI using Twilio Verify Email Address Verification in FastAPI using Twilio Verify

    Most web applications accept the user’s email address during the sign up process. To keep the creation of fake accounts under control, it is always a good idea to confirm that the user can receive email on the provided address.

    Twilio Verify is an easy to use service for user verification through numeric codes that can be sent via SMS, voice call or email. In this tutorial you’ll learn how to implement an email verification flow in a FastAPI application.

    Project demo

    Tutorial requirements

    Read More
  • By Miguel Grinberg
    Style your Website with Tailwind CSS Style your Website with TailwindCSS

    Defining the look & feel of a website is hard. The CSS (Cascading Style Sheets) language that is used to describe the presentation of HTML documents is long, confusing and inconsistent, and the implementation by different browsers isn’t always aligned. To reduce the pain points of working with CSS, a number of CSS frameworks provide reusable user-interface components for which the styling has been carefully designed and tested. However, when you use one of these frameworks it is very hard to make your site look different from the multitude of others built with the same framework.

    In this article I’m going to introduce you to Tailwind CSS, a low-level CSS framework that gives you a complete set of cross-browser and reusable utility classes, with which you can build your site and give it its own distinctive look and feel.

    A Tailwind CSS playground

    The easiest way to familiarize yourself …

    Read More
  • By Miguel Grinberg
    Transcribe a Voice Message with Python and Django Transcribe a Voice Message with Python and Django

    In this tutorial you’ll leverage Twilio Programmable Voice to direct phone calls received at your Twilio phone number to a Django application. The caller will be asked to leave a message, which will be transcribed. This guide can be used as a foundation to build your own voicemail system.

    Tutorial requirements

    To get started with this tutorial, you’ll need the following:

    • 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 free Twilio account (sign up with this link and get $10 in free credit when you upgrade to a paid account)
    • A Twilio phone number
    • An active phone line from where you can call your Twilio number, to test the project.

    Project setup

    In this section you are going to set up a brand new Django project. To keep things nicely organized, open a …

    Read More
  • By Miguel Grinberg
    How to Send a Picture on WhatsApp from the Command Line Using Twilio and cURL How to Send a Picture on WhatsApp from the Command Line Using Twilio and cURL

    The WhatsApp Business API from Twilio is a powerful, yet easy to use service that allows you to communicate with your users on the popular messaging app.

    In this article, you’ll learn how to send an image to a user through WhatsApp using a cURL, which would make this functionality accessible from shell scripts.

    Project demonstration

    Prerequisites

    To follow this tutorial you need the following items:

    The …

    Read More
  • By Miguel Grinberg
    How to Send an SMS in FastAPI with Twilio How to Send an SMS in FastAPI with Twilio

    Twilio is all about powering communication and doing it conveniently and fast in any language. But if you have a Python application written with the asyncio package, it may not be completely clear how to translate the examples from the documentation into non-blocking code that works well with an asynchronous loop.

    In this tutorial you’ll learn how to properly deliver SMS notifications from a FastAPI application. The techniques shown here are also applicable to other asyncio frameworks.

    Project demo

    Tutorial requirements

    Read More
  • By Miguel Grinberg
    How to Receive WhatsApp Messages in Python using Django and Twilio How to Receive WhatsApp Messages in Python using Django and Twilio

    The WhatsApp Business API from Twilio is a powerful, yet easy to use service that allows you to communicate with your users on the popular messaging app. In this tutorial you are going to learn how to create a Python application based on the Django web framework that can receive and handle WhatsApp messages.

    Project demo

    Prerequisites

    To follow this tutorial you need the following items:

    The Twilio WhatsApp sandbox

    Twilio provides a WhatsApp sandbox, where …

    Read More
  • By Miguel Grinberg
    How to Send an SMS from a Shell Script using cURL header - How to Send an SMS from a Shell Script using cURL

    Twilio is all about powering communication and doing it conveniently and fast in any language.  

    In this tutorial you’ll learn how to deliver a quick message or notification via SMS directly from your shell script. You’ll use the popular cURL command-line utility to send an SMS in an insanely fast manner. Ready? Let's get started!

    Tutorial requirements

    Buy a Twilio phone number

    If you haven't done so already, purchase a Twilio phone number to send …

    Read More
  • By Miguel Grinberg
    Make a Phone Call Using Python and Twilio Programmable Voice Make a Phone Call Using Python and Twilio Programmable Voice

    Twilio Programmable Voice allows you to make and receive voice calls directly from your application. In this tutorial, I’ll show you how to use Programmable Voice to make a voice call in Python. 

    Prerequisites

    Set up your environment

    In this section you are going to set up a brand new Python project. To keep things nicely organized, open a terminal or command prompt, find a suitable place and create a new directory where the project …

    Read More
  • By Miguel Grinberg
    How to Receive a Phone Call in Python Using Django and Twilio How to Receive a Phone Call in Python Using Django and Twilio

    Twilio Voice is a highly customizable and convenient service that allows you to automate your telephone workflows. In this tutorial you are going to learn how to create a Python application based on the Django web framework that can answer phone calls.

    Prerequisites

    To follow this tutorial you need the following items:

    Project setup

    In this section you are going to set up a brand new Django project. To keep things nicely organized, open a …

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