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/twilio/README.md at master · kvsandy/java-docs-samples

Expand file tree

/

README.md

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
37 lines (26 loc) · 1.5 KB
/

README.md

Copy path

File metadata and controls

37 lines (26 loc) · 1.5 KB
Raw
Copy raw file
Download raw file
Outline
Edit and raw actions

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

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 01402792 — 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.