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

SMS posts

  • By Brent Schooley
    Como enviar um SMS em Python Como enviar um SMS em Python

    Tudo o que você precisa para enviar um SMS em Python usando Twilio são as seguintes linhas de código:

    import os
    from twilio.rest import Client
    account_sid = os.environ.get('TWILIO_ACCOUNT_SID')
    auth_token = os.environ.get('TWILIO_AUTH_TOKEN')
    client = Client(account_sid, auth_token)
                          body='Você enviou um SMS em Python usando o Twilio!')

    Passo a passo do código

    A primeira coisa que precisamos para que o código acima funcione é uma conta da Twilio. Crie uma para você de graça aqui.

    Nós também precisamos de um número de telefone c …

    Read More
  • By Lizzie Siegle
    Build a Hamilton Song Recommendation SMS Bot with Machine Learning ham header

    Hamilton the Musical will start streaming on Disney Plus this Friday, so happy Hamilfilm week! To celebrate, learn how to build a SMS chatbot that recommends the Hamilton song most relevant to you right now using Twilio Programmable SMS and Functions, Microsoft Azure Cognitive Services, and JavaScript.

    See it in-action: text how you’re feeling to +13364295064. The longer and more descriptive your message is, the more data the app has to analyze what Hamilton song you need now!

    sms example


    Prerequisites and setting up Azure Cognitive Services

    To follow along with this post, you need three things:

    To use Azure Cognitive Services, …

    Read More
  • By Tilde Thurium
    Sending a SMS from Gatsby with serverless functions and React Send SMS from Gatsby with serverless functions and React

    Today I’ll teach you to send a SMS message from a Gatsby website using Twilio Serverless Functions and React. But first, what is Gatsby and why should you care?

    Gatsby 101

    If you spend time in JavaScript land, you might have heard of the JAMstack -- JavaScript, APIs, and Markup.

    Traditional web apps dynamically generate HTML from templates when the server receives a request. JAMstack websites use static site generators to turn templates into HTML when the site is deployed, instead of when a request comes in. 

    Since plain ol’ HTML can be much faster to serve, JAMstack can give you a huge performance boost. Especially if you’re using a content delivery network. Although, there are limits to the amount of UI complexity static sites can support.

    Gatsby bridges the gap between JAMstack static sites and traditional web apps. You write React components that compile to HTML plus …

    Read More
  • By Diane Phan
    How to Keep Friends Accountable Using Twilio Programmable SMS, Python, and Flask How to Keep Friends Accountable Using Twilio Programmable SMS and Video

    It’s no mystery that the transition to online learning or working from home has impacted all of our lives. If you’re like me, you miss going out to a local coffee shop and being productive without distractions. It’s also nice to study and work with others around you to motivate you and keep you from checking social media every minute.

    Completing this tutorial will allow you to host a system for you and your friends to be able to change your status throughout the day, everyday. Plus, you’ll realize just how easy it is to get started with coding!

    In this post, I’ll show you how to develop a functional Python program to organize your work groups using Twilio Programmable SMS and Flask.  

    Tutorial Requirements 

    In order to build this project, you will need to have the following items ready:

    • Python 3.6 or newer. If your operating system does not …
    Read More
  • By Ugendu Ositadinma
    Retrieving Account-Specific Pricing for Twilio SMS in Your PHP App Retrieving Account-Specific Pricing for Twilio SMS in Your PHP App

    A major factor to consider when building web applications is evaluating the cost of integrating third-party services. If you’re using Twilio, this tutorial will serve as a guide to finding the cost of making SMS/Messaging requests to the Twilio Programmable SMS APIs.

    Installation Requirements

    To get started with this tutorial, you will need to have the following modules/packages installed on your development machine:

    Here is a guide that can be followed to install Composer globally:

    Creating the PHP Project

    First, create a folder named smsPricing on your local machine where the code will be housed.

    In the folder that was created, create a file named index.php which will contain all the code for this tutorial.

    Now, let’s go ahead and install Twilio's PHP SDK in order to call the necessary APIs required to share the functions. To accomplish …

    Read More
  • By Ladapo Samuel
    Convert Bitcoin to Local Currency using PHP Convert Bitcoin to Local Currency using php.png

    There are different methods of converting bitcoins to local currency and vice versa such as blockchain exchange sites and wallet apps,  Today, this tutorial will walk you through creating your simple Bitcoin converter using SMS and PHP, allowing you to check current market rates on the go!

    Technical Requirements

    To complete this tutorial, you will need the following dependencies globally installed on your computer:

    Set Up Your Development Environment

    To kick start our project, we will need to create a project directory for it. You may use cryptoconverter as this is what I will be using. Create the following files in the project folder:

    • .env
    • webhook.php
    • functions.php

    Next, we need to set up our .env file.

    NOTE: The .env file is a hidden file used to store secret and private keys on our servers. …

    Read More
  • By Miguel Grinberg
    Automating Ngrok in Python and Twilio Applications With Pyngrok Automating Ngrok in Python and Twilio Applications with Pyngrok

    When you are developing an application that uses Twilio services you need to expose your webhooks on public URLs that can be reached by Twilio. If you have followed some of the tutorials that we published on this blog you know that we recommend using the excellent ngrok tool to generate temporary public URLs for your development web server. Ngrok is an incredibly useful tool that creates a tunnel from a URL on the ngrok.io domain to your application running on your computer. You can then configure your webhook using the ngrok URL and when Twilio sends a request to it, ngrok redirects it to your application.

    If you use ngrok frequently enough, it pays off to become a paid customer, which allows you to secure a permanent URL. But if you only use this service occasionally, it is tedious to have to log into the Twilio Console to …

    Read More
  • By Justin Coons
    Developers Build for the New Normal: Qaunain Meghjee Qaunain Meghjee.jpg

    The tech incubator Level39 is situated in the heart of London’s Canary Wharf district, occupying four floors of the One Canada Square building, the third tallest skyscraper in Britain.

    On an average day, more than 1,200 people pass through Level39’s doors to work at one of the 200 businesses located there. Level39 will welcome another 300 daily visitors: guests of member businesses, event attendees, and diners at its bar and restaurant.

    It’s a lot to manage.

    “If you imagine it, we've got six front of house staff,” said Qaunain Meghjee, head of technology at Level39. “It’s myself, different members of the tech team, and colleagues from other teams — all ensuring everything runs smoothly across our multiple floors.”

    It’s important to make sure that only the right people have access to the right places in Level39’s facilities. Each of the 200 member businesses has its own staff with its …

    Read More
  • By Dave Nugent
    React or Vue: What Framework Are You? With IBM Watson and Twilio Autopilot and Functions header what framework are you

    Which JavaScript framework are you: React, Vue, Angular, Ember, or Backbone? Answer this question by building an intelligent chatbot with JavaScript, IBM Watson, Twilio Functions and Autopilot, and a Naive Bayes Classifier npm module.

    This post was written with Twilio developer evangelist Lizzie Siegle for a workshop and is an adaptation of a chatbot first built on dev.to.

    Prerequisites and Setup

    To follow along with this post, you need three things:

    If you haven't already, follow this blog post to make a Watson Natural Language service, make a new Twilio Function, and then call Watson NLU from said Twilio Function. With your Twilio Function …

    Read More
  • By Prateek Jain
    Announcing General Availability of Messaging Insights Messaging_Insight_Simple_02 (1).png

    Understanding message deliverability is critical to a successful customer engagement strategy. Lack of transparency and control leads to undelivered messages, frustrated consumers, and time-consuming troubleshooting efforts. Often, companies spend precious engineering time building customized dashboards just to understand usage and delivery health.

    Today, we are excited to announce Messaging Insights, providing real-time analytics out-of-the-box within the Twilio Console. For no additional cost or code, customers can now monitor message delivery and engagement, troubleshoot issues quickly, and optimize effectiveness across channels. Messaging Insights is being launched with 4 reports to pro …

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