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

ahoy-five-minute-projects posts

  • By Diane Phan
    Start a Ghost Writing Career for Halloween with OpenAI's GPT-3 Engine and Java header - Start a Ghost Writing Career for Halloween with OpenAI's GPT-3 Engine and Java

    Illustration by Caroline.

    It can be tempting to stay inside with a cup of hot cocoa to read as the days get chillier. Why not challenge yourself by writing some code along with a new story this fall season?

    In this article, you will learn how to navigate a Java IDE to build a ghost writing application in Java with the OpenAI GPT-3 engine.

    Tutorial Requirements

    Start a new Java project in IntelliJ IDEA

    Open IntelliJ IDEA and click on Create New Project.

    Choose Gradle on the left hand side, check Java in the box on the right hand side, and click Next.

    choose gradle option for new java project

    Give your project a name such as "GhostWriter" …

    Read More
  • By Alina Libova Cohen
    Keep a Journal of Special Moments using Twilio Programmable SMS and Google Sheets Keep a Journal of Special Moments using Twilio Programmable SMS and Google Sheets

    "It’s amazing how easy it is to forget the magical little moments you assumed would get tattooed on your brain." I read in Matthew Dick's article on how to remember more of your kid's childhood and couldn't help nodding along.

    My toddler recently turned two and a half and my second daughter was born three weeks ago, so special moments are abundant but the ability to remember them is severely compromised. His suggestion of recording a memory every day in an Excel sheet or leather bound journal resonated with me, but after a few days of trying to find time to open up Excel and write a memory I realized I needed a more lightweight solution. Texting, especially with the voice dictation feature, has always been my favorite medium, and Twilio makes it easy and cheap to set up a dedicated phone number that can record those text messages to …

    Read More
  • By Matthew Setter
    How to Create a QR Code in PHP How to Create a QR Code in PHP

    QR codes are almost everywhere these days!

    It makes sense. They're small, readable on any modern smartphone without special software, and let us do so many things easily and quickly, such as checking in at a cafe, gaining access to a WiFi network, accessing a scooter on a summer vacation, and making a purchase.

    Here are some examples that I found from around the web.

    Some examples of QR codes.

    So if you want to know how to create them in your PHP-based application, read on.

    Prerequisites

    To follow this tutorial, you need the following:

    • Previous experience with writing PHP code.
    • PHP 7.4 with the GD extension installed.
    • Composer installed globally.
    • A smartphone.

    Let's create a QR code in PHP

    First, we need to create a project directory structure to store all the files that we'll make use of. To do so, switch into the top-level directory, and run the commands below.

    mkdir -p php-qr-code-generator …
    Read More
  • By Diane Phan
    How to Start Your First Java Spark App header - How to Start Your First Java Spark App

    Setting up a new project to hack together an idea shouldn't be a problem, especially with the help of the Spark framework. Not only does this lightweight framework allow developers to be more productive with minimal boilerplate, but explore REST APIs at the same time.

    In this article, you will learn how to navigate a Java IDE to set up and build a Java Spark application.

    Tutorial requirements

    Start a new Java project in IntelliJ

    Open IntelliJ Idea and click on Create New Project.

    IntelliJ IDEA home screen

    Choose Gradle on the left hand side a …

    Read More
  • By Diane Phan
    How to Start an HTTP Servlet helper - How to Start an HTTP Servlet

    With so many Java technologies available, it can be difficult to figure out which one to use to power a Java-based web application.

    Beginner Java programmers can benefit from using servlets because they provide an opportunity to understand low-level concepts in Java. Servlets are also great for building interactive web applications and dynamic web pages as they are used to extend apps hosted by web servers. They handle HTTP requests between a browser and any client, database, or application on the HTTP server.

    In this article, you will learn how to build and run your first servlet to host your Java application.

    Tutorial requirements

    Start a new Java project with Gradle

    Gradle is a handy tool that will allow you to build any software on different platforms with high performance. If you use Homebrew, enter the following command to install Gradle: …

    Read More
  • By Diane Phan
    How to Send an SMS with a Click of a Button with Java header - How to Send an SMS with a Click of a Button with Java

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

    With the help of Twilio and Java, you can deliver a quick message to someone without having to pick up your mobile device. Using Java also gives you the fun opportunity to create Graphical User Interfaces (GUIs) to complement your user's experience in sending an SMS in a more fun and interactive way.

    In this article, you'll be implementing a small button GUI that will fire an SMS to your mobile phone device once the button is clicked.

    Tutorial requirements

    • A free or paid Twilio account. If you are new to Twilio get your free account now! (If you sign up through this link, Twilio will give you $10 credit when you upgrade.)
    • Some prior knowledge of Java or a willingness to learn.
    • A smartphone with active service to test the project.

    Configuration …

    Read More
  • By Miguel Grinberg
    How To Send a WhatsApp Message in 30 Seconds with Golang How To Send a WhatsApp Message in 30 Seconds with Golang

    Twilio is all about powering communication conveniently and quickly in any programming language.

    In this tutorial you’ll learn how to deliver a message or notification via WhatsApp with a few lines of Go that can be added to any application with the new Twilio Go Helper Library. Ready? Let's get started!

    Tutorial requirements

    The Twilio WhatsApp sandbox

    Twilio provides a WhatsApp sandbox, where you can easily develop and test your application. Once your application is complete …

    Read More
  • By Miguel Grinberg
    Add Custom Effect Filters to your Twilio Programmable Video Calls Add Custom Effect Filters to your Twilio Programmable Video Calls

    The Twilio Video JavaScript SDK has been recently enhanced with support for video processors, small effects, and filters that can be applied to the video tracks in a Programmable Video application.

    In a previous article, I showed you how to use the background blurring and replacement effects released as part of the Twilio Video Processors library. In this article, I’m going to show you how to create your own custom video effects.

    Face detection demo

    Prerequisites

    At the time I’m writing this article, video processors are only available for Chrome and other chromium-based web browsers. You can check the current list of supported browsers in the documentation for updates.

    What is a video processor?

    A video processor is a small JavaScript object that performs video processing transformations or effects. The structure of a video processor is shown below:

    myVideoProcessor = {
        processFrame: (inputFrame, outputFrame) => {
            // the video processing logic goes …
    Read More
  • By Matthew Setter
    How to Send an SMS in 30 Seconds with Ruby How to Send an SMS in 30 Seconds with Ruby

    Twilio is all about powering communication, regardless of the language—or language framework—that you're using for a given project.

    In this tutorial, you'll learn how to send an SMS directly from a Ruby application. What's more, you're going to use Twilio's Ruby Helper Library to make sending an SMS even faster than it would otherwise be. Ready to go? Let's dive in!

    Tutorial requirements

    To complete the tutorial, you will need the following things:

    • A free Twilio account (sign up with this link and get $10 in free credit when you upgrade your account)
    • Ruby, version 2.7 or later. If you don't already have Ruby installed, you can install it using your operating system's package manager (if you're using Linux or macOS) or download it.
    • Bundler
    • A smartphone with active service, to test the project.
    • The Twilio CLI (optional)

    Get your Twilio phone number

    As we're sending an SMS, …

    Read More
  • By Miguel Grinberg
    How to Send an SMS in 30 Seconds with Golang How to Send an SMS in 30 Seconds with Golang

    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 a Go application. You’ll use the new Twilio Go Helper Library 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 the SMS from.

    Log in …

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