Skip to content

Instantly share code, notes, and snippets.

@jpf
Last active December 14, 2015 17:38
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jpf/3c740d0b7da3fc91481e to your computer and use it in GitHub Desktop.
Save jpf/3c740d0b7da3fc91481e to your computer and use it in GitHub Desktop.
import webapp2
from twilio import twiml
class HelloMonkey(webapp2.RequestHandler):
def post(self):
r = twiml.Response()
r.say("Hello Monkey!!")
self.response.headers['Content-Type'] = 'text/xml'
self.response.write(str(r))
app = webapp2.WSGIApplication([('/twiml', HelloMonkey)],
debug=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment