Created
January 3, 2011 06:18
-
-
Save rdegges/763176 to your computer and use it in GitHub Desktop.
A simple example of a django-tropo view.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from tropo import Tropo | |
from djtropo import tropo_view | |
@tropo_view | |
def ivrintro(request): | |
"""Say hello world and hangup.""" | |
t = Tropo() | |
t.say('hello, world!') | |
t.hangup() | |
return t.RenderJson() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment