Skip to content

Instantly share code, notes, and snippets.

@saadbinakhlaq
Created December 20, 2013 22:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save saadbinakhlaq/8062371 to your computer and use it in GitHub Desktop.
Save saadbinakhlaq/8062371 to your computer and use it in GitHub Desktop.
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