For new development, we encourage you to use the Verify API. The Verify API is an evolution of the Authy API with continued support for SMS, voice, and email one-time passcodes, and an improved developer experience.
For more about Twilio Verify, please visit the Twilio Verify Docs
- Java 8 installed in your operative system.
- A Twilio account with a verified phone number. (Get a free account here.) If you are using a Twilio Trial Account, you can learn all about it here. 1.ngrok
- PostgreSQL
This application should give you a ready-made starting point for writing your own appointment reminder application. Before we begin, we need to collect all the config values we need to run the application:
Config Value | Description |
---|---|
Account Sid | Your primary Twilio account identifier - find this in the Console. |
Auth Token | Used to authenticate - just like the above, you'll find this here. |
Phone number | A Twilio phone number in E.164 format - you can get one here |
-
First clone this repository and
cd
into it.git clone git@github.com:TwilioDevEd/blog-tfa-servlets.git cd blog-tfa-servlets
-
Copy the sample configuration file and edit it to match your configuration.
cp .env.example .env
See Twilio Account Settings to locate the necessary environment variables.
-
Make sure the all tests succeed.
./gradlew integrationTest
-
Run the application.
./gradlew appRun
- No warranty expressed or implied. Software is as is. Diggity.
- MIT License
- Lovingly crafted by Twilio Developer Education.