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

Code, Tutorials and Hacks

  • By Liz Moy
    Using the Yelp API and Twilio Messaging for Flower Delivery Using the Yelp API and Twilio Messaging for Mother's Day Flower Delivery

     

    Important dates can easily sneak up on you, and before you know it, it’s only a few days away from a special event like Mother’s Day or a birthday. If you’re like me and need to grab a last minute (but still thoughtful) gift, using the Yelp API is a great way to get localized recommendations fast.

    I hooked up the API to a Twilio phone number that you can text to get a list of florists in your delivery area. It will also indicate if the shop is currently open 💚or closed 🔴so you will know if it’s a good time to call. Try it out by texting +1 (815) 551-0M0M, which is +1 (815) 551-0606, to get recommendations based on delivery address zip code.

    A screenshot of a text message exchange that shows a list of Flower Delivery services from the Yelp API response to the Twilio number

    Here’s how you could build your own version of this using the Yelp API, Twilio Programmable Messaging, Studio, and Functions …

    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 Lizzie Siegle
    6 méthodes console JavaScript résumées par Taylor Swift 6 méthodes console javascript

    Si vous faites du dev Javascript, vous avez très probablement utilisé console.log au moins une fois (si ce n’est un millier de fois…) parce que c’est la meilleure méthode de débogage! Mais saviez-vous qu’il existait d’autres fonctions console ?

    Le dernier album-surprise de Taylor Swift “Folklore”, est blindé de métaphores, d’allusions et de symbolisme. Ce post va associer quelques-unes de ses paroles à 6 méthodes console JS moins connues.

    Qu’est-ce qu’une console, précisément ?

    console est un objet global qui permet aux développeurs d’accéder à la console de débogage. Elle contient une multitude de méthodes qui facilitent l’enregistrement des états, des variables, des fonctions, des erreurs et plus encore… !

    6 méthodes console qui suivent les paroles de Folklore

    1. console.log = "But it would've been fun // If you would've been the one"

    (“Mais ça aurait été sympa // Si tu avais été le bon)

    console.log est la …

    Read More
  • By Layla Porter
    Envoyer un message WhatsApp en 30 secondes avec C# WhatsApp C# banner

    Dans un précédent post, vous avez appris comment envoyer des SMS depuis votre application, mais avec la nouvelle API Twilio pour WhatsApp, vous pouvez maintenant envoyer un message WhatsApp de façon similaire et tout aussi rapidement !

    Pour vous faciliter la tâche, vous trouverez tout le code dans cet article et ici, un lien pour voir le projet complet sur GitHub.

    Si vous voulez voir une intégration complète des APIs Twilio dans une appli .NET Core, allez voir cette série gratuite de 5 vidéos que j’ai créées. C’est un peu à part de cet article, mais ça vous donnera un aperçu complet de beaucoup d’APIs en même temps.

    Voici ce dont vous aurez besoin pour suivre ce tutoriel :

    Read More
  • By Tilde Thurium
    8 projets JavaScript qui vont vous faire sourire 8 projets javascript qui vont vous faire sourire

    Le code est un moyen d’expression performant. Construire des choses parce qu’elles sont utiles, c’est super. Mais les projets code plus loufoques sont moins connus alors qu’ils sont géniaux !

    Dans cet article, je vais vous parler de 8 projets JavaScript qui, je l’espère, vont vous amener de la joie - ou au moins vous arracher un sourire.

    1. Pettier

    super petty gif

    Dans l’entreprise pour laquelle je travaillais avant, un ingénieur a intégré une pull-request, qui changeait 4 espaces en 2, dans toute la codebase JavaScript. Des centaines d’ingénieurs ont été coincés dans un embouteillage de merge conflicts, et la productivité a été enrayée pendant des heures. Bons souvenirs!

    C’est facile d’avoir des avis sur le style du code en oubliant son essence même. Au lieu de débattre sur les points-virgules, pourquoi ne pas convaincre votre équipe d’utiliser Pettier? En prenant l’approche la plus nihiliste sur les conventions de styles de …

    Read More
  • By Luís Leão
    Chatbot de voz existe? Como utilizar o DialogFlow para integrar serviços de voz e mensagem na mesma plataforma Chatbot de voz existe? Como utilizar o DialogFlow para integrar serviços de voz e mensagem na mesma plataforma

    Se você vai construir algum chatbot utilizando mensagens de texto, o DialogFlow já é a sua primeira opção, mas o que torna essa plataforma mais interessante é que ela pode ser conectada com múltiplos canais de comunicação, incluindo telefonia.

    Neste artigo vou abordar sobre como utilizar a integração de 1 clique do DialogFlow com a Twilio para que você possa receber chamadas telefônicas e respondê-las direto do seu assistente, como se fosse uma conversa de texto. Além disso, você vai aprender como funciona a integração e como você poderá customizá-la.

    Crie as contas nas plataformas

    Antes de começarmos, você vai precisar ter uma conta da Twilio e um projeto no DialogFlow.

    Criar a conta na Twilio é bem simples e você pode fazer isso clicando aqui. Uma vez com a conta criada, vá para o console do DialogFlow. Para a integração com 1 clique é necessário que você …

    Read More
  • By Lizzie Siegle
    How to Translate English to Mandalorian with Twilio Serverless and SMS mandoheader2.png

    Celebrate Star Wars Day on May 4th by texting a sentence to +14807573107 to translate it into the Mandalorian language and read on to learn how to build the app using the Mandalorian Translator API, Twilio Functions, and the Twilio Serverless Toolkit.

    sms example

    Prerequisites

    1. A Twilio account - sign up for a free one here and receive an extra $10 if you upgrade through this link
    2. A Twilio phone number with SMS capabilities - configure one here
    3. Postman (you could alternatively make cURL requests from the command line)
    4. Node.js installed - download it here

    Make an API Request to Fun Translations  

    kylo approves gif

    Fun Translations offers multiple translator APIs--in addition to the Mandalorian, there's a Yoda tr …

    Read More
  • By Ashley Boucher
    How to Send a Picture on WhatsApp Using Twilio and JavaScript header - How to Send a Picture on WhatsApp Using Twilio and JavaScript

    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, we’ll walk you through how you can develop a functional JavaScript program to send an image to a user through WhatsApp.

    Twilio WhatsApp console with an image and message "check out this owl!"

    Prerequisites

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

    • A smartphone with an active WhatsApp account, to test the project.

    The Twilio WhatsApp sandbox

    Twilio provides a WhatsApp sandbox, where you can easily develop and test your application. Once your application is complete you can request production access for your Twilio phone number, which requires approval by WhatsApp.

    In this section you are going to connect your smartphone to …

    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 Diane Phan
    How to Transcribe a Voice Message Using Twilio, Python, and Flask transcribe a voice message using twilio and flask

    In this tutorial you’ll leverage Twilio Programmable Voice to receive phone calls at your Twilio phone number, and transcribe any voice messages left by the caller. This guide can be used as a foundation to build your own voicemail system.

    Prerequisites

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

    Project setup

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

    mkdir python-flask-transcription 
    cd python-flask-transcription
    

    Create a virtual environment

    Following Python best practices, you are now going to create a virtual environment, where you are …

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