Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Uses phone API with JSON
# 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"}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment