Created
December 20, 2013 22:01
-
-
Save saadbinakhlaq/8062371 to your computer and use it in GitHub Desktop.
This file contains 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
app.route('/get_digits/', methods=['GET']) | |
def get_digits(): | |
if not digits: | |
res = plivo.Response() | |
get_digits = plivo.GetDigits(action='http://162.209.56.40:5006/get_digits_test/ | |
method='GET') | |
get_digits.addSpeak(body='Press one for sales, press two for support') | |
res.add(get_digits) | |
return Response(str(res), mimetype='text/xml') | |
elif digits == '1': | |
res = plivo.Response() | |
res.addSpeak(body='Welcome to plivo') | |
res.addConference(body='saad') | |
return Response(str(res), mimetype='text/xml') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment