Skip to content

Instantly share code, notes, and snippets.

@jpf
Last active Dec 14, 2015
Embed
What would you like to do?
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