Build the future of communications.
Start Building for Free

Java posts

  • By Diane Phan
    How to Send SMS From a MySQL Database With Java Spring Boot header - How to Send SMS From a MySQL Database With Java Spring Boot

    This is part 3 of the series of how to set up a working MySQL database to send SMS. Part 2 can be found under the tutorial requirements.

    In this article, you will learn how to send an SMS with contents from a MySQL database.

    Tutorial requirements

    Read More
  • By Vivek Kumar Maskara
    How to Integrate AWS Simple Notification Service (SNS) with Twilio SendGrid header - How to Integrate AWS Simple Notification Service (SNS) with Twilio SendGrid

    Different services deployed in your infrastructure could emit events that need to be delivered to your end users. Applications deployed on AWS often use Amazon Simple Notification Service (SNS) for inter-service and user communication. Twilio SendGrid provides APIs for delivering an exceptional email experience to your users. You can integrate SendGrid into your existing workflow to leverage its reliable and scalable email infrastructure.

    In this post, learn how to integrate the AWS Simple Notification Service (SNS) with SendGrid to send emails to users. You will learn how to create an AWS Lambda function that subscribes to an SNS topic and sends emails using the SendGrid APIs on receiving a new message. Java language will be used to define the AWS Lambda Handler and the Twilio SendGrid Java library to work with the email APIs.

    Prerequisites

    For this tutorial, you will need to set up Java on your system since it …

    Read More
  • By Diane Phan
    How to Set Up a MySQL Database in Java Spring Boot header - How to Set Up a MySQL Database in Java Spring Boot

    In this article, you will learn how to spin up a MySQL database and connect it to a Java Spring Boot project. You will also use Postman's desktop application to send requests to the application.

    Tutorial requirements

    Read More
  • By Matthew Gilliard
    How to Send SMS with Twilio and Micronaut How to Send SMS with Twilio and Micronaut title card

    Micronaut is a framework for building JVM web and serverless apps, first released in 2018. It aims for fast startup and low memory overhead for your web applications, and supports Java, Kotlin, and Groovy, with an eye on Scala support in the future.

    You might be familiar with Spring Boot as a popular framework in this space, and Baeldung has an overview article comparing it with Micronaut.

    In this post I'll show how to set up a web app with Micronaut to handle Twilio webhooks for incoming SMS so your app can reply to them automatically. If you're interested in starting your Micronaut journey or looking to learn enough to start building your next Twilio app with it, then read on.

    You'll need:

    • A recent version of Java. I used Java 18 but anything from 11 onward will work
    • A Twilio account. Sign up here if you don't have …
    Read More
  • By Christy Jacob
    How to Send Welcome Emails with SendGrid and Appwrite Cloud Functions How to Send Welcome Emails with SendGrid and Appwrite Cloud Functions

    In this post, we’ll explore how you can leverage the Twilio SendGrid API to programmatically send welcome emails using Appwrite’s Cloud Functions! We’ll be using SendGrid’s Java SDK and Appwrite’s Java runtime for this example. SendGrid and Appwrite have official support for a lot more languages, so feel free to check them out.

    What is Appwrite you might ask? Appwrite is an open-source back-end-as-a-service that abstracts all the complexity of building a modern application by providing you with a set of REST and Realtime APIs for your core back-end needs. Appwrite takes the heavy lifting for developers and handles user authentication and authorization, databases, file storage, cloud functions, webhooks, and much more!

    Prerequisites

    Now that you know what you’re going to build, let’s take a look at some of the things you’ll need to get started!

    A SendGrid Account

    If you don't have a SendGrid Account already, you’ll need to …

    Read More
  • By Diane Phan
    How to Build a Pomodoro Timer With Java Spring Boot and Twilio header - How to Build a Pomodoro Timer With Java Spring Boot and Twilio

    Pomodoro timers are not only used in the kitchen, but they are also used to assist in daily productivity. The purpose of this particular timer is to promote the concept of working on a task for 25 minutes then taking a short break afterwards.

    With the assistance of Twilio, you can be notified with a text message about your next break by clicking on a button on a webpage.

    In this tutorial, you’ll learn how to build your own pomodoro timer using Java Spring Boot and Twilio Programmable Messaging services.

    Tutorial requirements

    Read More
  • By Peter Aideloje
    Build a Phone Number Verification System with Java Spring Boot and Twilio Verify header - Build a Phone Number Verification System with Java Spring Boot and Twilio Verify

    The benefit of having a phone number verification system in today’s business environment cannot be overemphasized as it helps to fight fake account fraud through the delivery of a time-based one time password code. This TOTP provides a good level of security to a user in a user-friendly approach.

    The Twilio Verify API provides an additional level of account security through sign-up protection and throughout the user’s journey. Therefore, businesses everywhere rely on it as a way of authenticating users and proving that a phone number is valid, accessible and still functional.

    This tutorial will focus on building a phone number verification system using the Spring Boot framework and the Twilio Verify APIto verify a user’s phone number.

    You can also visit the Twilio official documentation to learn more about other available Twilio APIs and systems that are supported.

    Tutorial requirements

    To follow along with this tutorial, you’ll need …

    Read More
  • By Diane Phan
    How to Send Scheduled SMS with Twilio header - How to Send Scheduled SMS with Twilio

    Twilio is all about powering communication – and doing it conveniently and fast. Our Programmable Messaging service has been available for a long time, but until now, scheduling a message to be sent at a future time required a developer to use their own scheduling solution.

    Fortunately, this is now a thing of the past! With Message Scheduling, you can send your scheduled SMS and MMS messages with a single API call, without using custom schedulers.

    In this tutorial, you’ll learn how to send scheduled SMS notifications in Java.

    Tutorial requirements

    Read More
  • By Ehis Edemakhiota
    How to Build an Object Recognition App With Google Cloud Vision API, Java Spring Boot, and Twilio WhatsApp header - How to Build an Object Recognition App With Google Cloud Vision API, Java Spring Boot, and Twilio WhatsApp

    Our world today can be described as smart. Smart houses, smartwatches, smartphones, smart cars and even smart foods 😜 is the talk of the day. These smart devices are made possible majorly due to advancements in the field of computer vision. This consists of object and text recognition, which opens doors for unimaginable technology that will certainly influence how humans live and learn in the coming times.

    The Google Cloud Vision API gives access to powerful pre-trained machine learning models that can be employed via easy-to-use REST APIs. It promises to be an exciting project that you will be proud to show to your friends after you complete it.

    This article provides insight into integrating object and text recognition features into your Java Spring Boot application. In the tutorial, you will learn how to use the Google Cloud Vision API to create a cool app that can analyse images …

    Read More
  • By Diane Phan
    How to Create an Engaging Scavenger Hunt with Twilio header - How to Create an Engaging Scavenger Hunt with Twilio

    As kids are finishing up school and the days are becoming warmer, consider getting everyone active by sending them on a scavenger hunt around the neighborhood. To make the day more exciting, utilize some Twilio magic by having the participants use their phones to complete puzzles to determine the winner of the scavenger hunt.

    This tutorial is intended to present an idea that can be appended to the end of the scavenger hunt game, sort of like an alternate reality game (ARG) that utilizes both the real world and technology.

    The flow of the game goes as follows:

    • The user will text the Twilio number to retrieve the URL to play a minigame.
    • The user will play a click-based game that will trigger an SMS to be sent to the host of the scavenger hunt, likely yourself, signifying that someone has completed the scavenger hunt.

    In this article, you will …

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