GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — java-docs-samples/appengine-java8/twilio at main · ankiaga/java-docs-samples

Expand file tree

/

twilio

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
 
 
/

twilio

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
src/main
src/main
 
 
README.md
README.md
 
 
pom.xml
pom.xml
 
 

README.md

Outline

Java Twilio Voice and SMS Sample for Google App Engine Standard Environment

Open in Cloud Shell

This sample demonstrates how to use Twilio on Google App Engine standard environment.

See the sample application documentaion for more detailed instructions.

For more information about Twilio, see their Java quickstart tutorials.

Setup

Before you can run or deploy the sample, you will need to do the following:

  1. Create a Twilio Account. Google App Engine customers receive a complimentary credit for SMS messages and inbound messages.
  2. Create a number on twilio, and configure the voice request URL to be https://your-app-id.appspot.com/call/receive and the SMS request URL to be https://your-app-id.appspot.com/sms/receive.
  3. Configure your Twilio settings in the environment variables section in src/main/webapp/WEB-INF/appengine-web.xml.

Running locally

You can run the application locally to test the callbacks and SMS sending. You will need to set environment variables before starting your application:

$ export TWILIO_ACCOUNT_SID=[your-twilio-accoun-sid]
$ export TWILIO_AUTH_TOKEN=[your-twilio-auth-token]
$ export TWILIO_NUMBER=[your-twilio-number]
$ mvn clean jetty:run
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.