Build the future of communications.
Start building for free
  • By Diane Phan
    How to Make a Clicker Game with Java header - how to make a clicker game with java

    Making mini browser games can be a great way to learn how to code and understand how the internet works. It's also fun to just make your own version of pointless and addicting games such as Cookie Clicker.

    In this article, you will learn how to make your own clicker game that runs on the Java Spring Boot application. The objective of the clicker game is to count the amount of clicks on a chosen image. In this particular example, we will allow the user to click on an image of a cat to give it some treats.

    Tutorial requirements

    Add the Thymeleaf dependency

    Navigate to the pom.xml file to add the following dependency to …

    Read More
  • By Diane Phan
    Get to Know Java SDKs and Libraries Copy of TwilioQuest  Blog Headers  1200X628 (1).png

    This post is a part of a series that supports an expanded adventure, as of May 2022, in TwilioQuest, but it will be relevant to anyone curious about Java Libraries. Happy reading!

    Ahoy, operator. Congratulations on gaining acceptance into the Arcane Academy of API Arts. I’m Professor Taifa Omar Warsame, head of House Turing. In House Turing, we believe that code is for people. If code isn’t human centered - if it’s not helping people have fun, work smarter, or live better, it’s not that interesting. That’s why, in House Turing, we love SDKs and helper libraries. They help make working with APIs easier and more readable for the humans behind the code.

    For creatives such as myself, writing code can be a form of art and expression. It's another medium to bring ideas to life, whether it be a data visualization or small click based game …

    Read More
  • By Diane Phan
    IntelliJ IDEAで環境変数を設定する方法 IntelliJ IDEAで環境変数を設定する方法

    この記事はDiane Phanこちらで公開した記事(英語)を日本語化したものです。

    本稿では、Java IntelliJ IDEAで環境変数を設定する方法について説明します。

    チュートリアルの要件

    このチュートリアルを最後まで進めるには、以下の項目が必要です。

    IntelliJ IDEAで新規Javaプロジェクトを立ち上げる

    IntelliJ IDEAを起動し、[Create New Project](新規プロジェクトの作成)をクリックします。

    左側の[Gradle]を選択し、右側のボックスで[Java]にチェックを入れ、[Next](次へ)をクリックします。

    新規JavaプロジェクトのGradleオプションを選択する

    「sms_variables」などのプロジェクト名を付けて、[Finish](終了)ボタンをクリックします。

    プロジェクトの設定が完了し、ビルドが成功すると、プロジェクトのディレクトリ構造が以下の画像のようになります。

    ビルド用Gradleファイルのプロジェクトディレクトリ

    環境変数をアプリケーションに追加する

    IntelliJ IDEAコンソールの上部にある[Run](実行)タブで、以下のようにドロップダウンから[Edit Configurations...](設定の編集...)を選択します。

    プロジェクトの[Edit Configurations](設定の編集)へのオプション

    [Run/Debug Configurations](実行/デバッグ設定)とい …

    Read More
  • By Diane Phan
    How to Set Up and Deploy a Java Spring Boot Application header - How to Set Up and Deploy a Java Spring Boot Application

    It might seem intimidating to build projects using Java especially when it seems confusing to know how to start and set up. Fortunately, using the Spring Boot and ngrok tools will reassure you that writing code for Java applications can be fast and seamless.

    Spring Boot reduces the problem of figuring out how to structure the project hierarchy and provides sufficient documentation for developers to create standalone applications without relying on external web servers.

    Many articles on the Twilio blog utilize ngrok, a localhost tunneling tool that exposes webhooks on public URLs that can be reached by Twilio. The excellent ngrok tool is also used to generate temporary public URLs for your development web server.

    In this article, you will learn how to set up a Java Spring Boot application and create a tunnel from a URL on the ngrok.io domain to the local application running on your computer. …

    Read More
  • By Diane Phan
    How to Organize a Lunch Order with Java and Twilio SMS header - 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

    Read More
  • By Diane Phan
    How to Make a Mysterious Phone Call with Twilio Voice and Java How to make a mysterious phone call with Twilio Voice and Java

    I'm sure all of us have made prank calls at some point in our lives or wanted to use phones to create a tricky puzzle.

    With the help of Twilio and Java, you can surprise a friend with a mysterious phone call that plays your chosen sound file, without having to pick up your mobile device.

    In this article, you'll write a couple of lines of Java code to make an outbound call that plays a chosen sound file to any phone number, right from the command line.

    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

    Start off by creating a …

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

    Twilio va de potenciar las comunicaciones y de hacerlo de forma cómoda y rápida en cualquier lenguaje.

    Con la ayuda de Twilio y Java, puede enviar un mensaje rápido a alguien sin tener que usar el dispositivo móvil. El uso de Java también le ofrece la divertida oportunidad de crear interfaces gráficas de usuario (GUI) para complementar la experiencia del usuario en el envío de un SMS de una forma más divertida e interactiva.

    En este artículo, implementará una pequeña GUI con botón que enviará un SMS al dispositivo móvil una vez que se haga clic.

    Requisitos del tutorial

    Read More
  • By Diane Phan
    How to Generate Story Ideas with Twilio SMS, Java, and OpenAI GPT-3 header - 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

    Read More
  • By Diane Phan
    How to Integrate Ngrok in a Twilio Java Application header - 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. …

    Read More
  • By Diane Phan
    How to Set Up Environment Variables in IntelliJ IDEA header - How to Set Up Environment Variables in IntelliJ IDEA

    In this article, you will learn how to navigate the Java IntelliJ IDEA to configure environment variables necessary for your project.

    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 "sms_variables" and click the Finish button.

    After the project setup is complete and the build has succeeded, your project …

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