Skip to content

Instantly share code, notes, and snippets.

@oozman
Last active December 16, 2015 04:29
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 oozman/5377067 to your computer and use it in GitHub Desktop.
Save oozman/5377067 to your computer and use it in GitHub Desktop.
GlobeLabs API
<?php
ask("What's your four or five digit pin? Press pound when finished", array(
"choices"=>"[4-5 DIGITS]",
"terminator" => "#",
"timeout" => 15.0,
"mode" => "dtmf",
"interdigitTimeout" => 5,
"onChoice" => "choiceFCN",
"onBadChoice" => "badChoiceFCN"
)
);
function choiceFCN($event) {
say("On Choice");
}
function badChoiceFCN($event) {
say("On Bad Choice");
}
#END OF PHP FILE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment