public

Uses phone API with JSON

  • Download Gist
cloudvox-inbound-simple-json.rb
Ruby
1 2 3 4 5 6 7
# use any language, or static JSON:
[{"name":"speak", "phrase":"Hello! Enter a 6-digit number."},
{"name":"getdigits", "max":6, "url":"http://a.web.server/step-2"}]
 
# input is passed to you. Act on it:
[{"name":"speak", "phrase":"You entered $_GET['result']"},
{"name":"playback", "filename":"thanks-for-calling"}]

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.