This sample demonstrates how to use Twilio on Google App Engine Flexible Environment.
For more information about Twilio, see their Python quickstart tutorials.
Before you can run or deploy the sample, you will need to do the following:
-
Create a Twilio Account. Google App Engine customers receive a complimentary credit for SMS messages and inbound messages.
-
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 behttps://your-app-id.appspot.com/sms/receive
. -
Configure your Twilio settings in the environment variables section in
app.yaml
.
Refer to the top-level README for instructions on running and deploying.
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-account-sid]
$ export TWILIO_AUTH_TOKEN=[your-twilio-auth-token]
$ export TWILIO_NUMBER=[your-twilio-number]
$ python main.py