﻿ Posts tagged with Twilio SMS - Twilio Blog

## Twilio SMS posts

• By Johnny Nguyen
How to Find Your Classes with Twilio SMS, Python, and Airtable

You can always count on the fact that I will get lost the first week of each college semester. I can have a physical copy of my schedule, my schedule set as my phone wallpaper, or a web page with my schedule pulled up. However, it can still take me a while to sift through webpages, find the building, search up the building, open up the directions, and then find the classroom.

With the new school semester coming around the corner, this problem came to mind during a coding workshop, and I programmed it in less than an hour. In this tutorial, you will learn how to use Twilio SMS, Python, and Airtable to send you an SMS message of your classes with directions for the day, so you can find your classes on time.

## Prerequisites

To continue with this tutorial, you will need:

• By Johnny Nguyen
How to Build a Linear Regression Model Using Twilio SMS and Python

Linear regression is a common and useful approach for modeling the relationship between a dependent variable and one or more independent variables. Its use spans many applications, such as economics, medicine, and science. Whether you're an expert in a lab or a beginner on a laptop, linear regression is a way to achieve valuable results built on relatively simple formulas.

In this tutorial, you will implement a linear regression model using Python and scikit-learn. To add more functionality, you will use Flask and Twilio's Programmable Messaging API to help you build your data and make predictions from the convenience of your phone.

## Prerequisites

To continue with this tutorial, you will need:

• Python 3.10 or higher installed on your machine.
• A Twilio account. If you haven’t yet, sign up for a free Twilio trial.
• A Twilio phone number. After having an account, you will need to obtain a Twilio phone …
• By Neil Ruaro
How to Create an API Texting Service using Twilio SMS and Python

Texting is one of the most common forms of communication in the modern age. Twilio provides a simple and easy-to-use interface for sending SMS text messages through their SMS API.

In this tutorial, you’ll be using the Twilio SMS API to create your very own API texting service using Python and the FastAPI framework.

Additionally, you’ll also learn about testing backend servers created with FastAPI, as well as how to deploy the API to Heroku using Docker.

If you're unfamiliar, FastAPI is a Python web framework for creating fast API applications. FastAPI also has default integration with Swagger documentation and makes it easy to configure and update.

Docker, on the other hand, is an industry staple in software engineering, as it is one of the most popular containerization softwares out there. Docker is used for developing, deploying, and managing applications in virtualized environments called containers.

The main selling point …

• By Dainyl Cua
How to Send an SMS with Twilio, Rust, and OpenAPI

Rust maintains its status as the most beloved programming language for seven years in a row according to Stack Overflow’s 2022 Developer Survey, so I decided to see what the hype was all about and figure out how I could integrate the language with Twilio’s products. With OpenAPI and Twilio’s OpenAPI specification, you can generate your own helper library in any supported language, including Rust.

In this tutorial, you will learn how to set up a Rust file that, once executed, will send a text message to your specified phone number using Twilio’s Programmable Messaging API.

## Prerequisites

To follow along with this tutorial, you will need:

• A free or paid Twilio account. If you are new to Twilio, click here to sign up for a free Twilio account and get a \$10 credit when you upgrade!
• A Twilio phone number
• A personal phone number

## Setting up …

• By Johnny Nguyen
SMS Forwarding and Responding Using Twilio SMS and Python

An SMS proxy service uses an additional phone number to serve as an intermediary between two or more parties. One of the main reasons to use a proxy to forward messages is to facilitate communication without disclosing phone numbers. As a result, an SMS proxy encourages reporting, collaboration, and discussions without the risk of revealing a private phone number.

In this tutorial, you will learn how to use Twilio’s Programmable Messaging API to proxy messages. This tutorial includes 2 different iterations of the application. The first will cover how to forward an SMS message, while the second will give an example of how to respond to the message.

## Prerequisites

To continue with this tutorial, you will need:

• By Diane Phan
How to Organize a Lunch Order with Java and Twilio SMS

Offices are opening up again! As employees are slowly going back to work in the office, local businesses are blooming with an influx of customers and new food orders. Allow Twilio to assist you in making your next lunch run with a quick and accessible way to view those elaborate orders on your phone when you're in line.

In this article, you will learn how to make a list to add and view from your phone using Twilio SMS and Java.

## Prerequisites

• By Akhil Chawla
How to Send an SMS With Java and SpringBoot

Twilio is a customer engagement platform providing programmable communication tools for making and receiving phone calls, sending and receiving text messages, and performing other communication functions using its web service APIs. Twilio conveniently empowers communication in any language.

With the help of the Twilio SMS API, Java, and the Spring Boot framework, you can send SMS with a text message. This article will help you set up a Spring Boot application that will expose a REST API to send the SMS. You will also be using the Twilio Java Helper Library.

In this article, you will learn how to navigate a Java IDE to set up and build a Spring Boot application and send an SMS to your mobile device. Find the code for the article on GitHub.

## Tutorial Requirements

• By Diane Phan
Cómo enviar un SMS con un clic de botón en Java

Twilio va de potenciar las comunicaciones y de hacerlo de forma cómoda y rápida en cualquier lenguaje.

Con la ayuda de Twilio y Java, puede enviar un mensaje rápido a alguien sin tener que usar el dispositivo móvil. El uso de Java también le ofrece la divertida oportunidad de crear interfaces gráficas de usuario (GUI) para complementar la experiencia del usuario en el envío de un SMS de una forma más divertida e interactiva.

En este artículo, implementará una pequeña GUI con botón que enviará un SMS al dispositivo móvil una vez que se haga clic.

## Requisitos del tutorial

• By Diane Phan
How to Generate Story Ideas with Twilio SMS, Java, and OpenAI GPT-3

There are many possibilities when it comes to using OpenAI GPT-3's engine. You can build a chatbot, generate new story ideas, or translate sentences from one language to another.

With the help of the Twilio SMS API, Java, and the Spark framework, you can respond to all incoming SMS' with a text message generated by the OpenAI GPT-3 engine. This article will help you set up a Spark application with access to OpenAI's services.

Specifically, you will learn how to send generated story ideas from the OpenAI GPT-3 API directly to a mobile device via SMS using Java and Spark.

## Tutorial Requirements

• By Diane Phan
How to Integrate Ngrok in a Twilio Java Application

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.

In this article I’m going to show you how to fully automate ngrok by incorporating it into your Java application. …