Skip to content
mheadd edited this page Sep 14, 2010 · 4 revisions

An object representation of the JSON that is delivered when a request is made to the Tropo WebAPI.
Use this object to examine the result of an Ask() that has gathered a response from a user.

// Get the JSON data submitted from the Tropo Web API
$result_json = file_get_contents("php://input");	

// Create a new instance of the Result Object and determine the user input.
$result = new Result($result_json);
$utterance = $result->getUtterance();
Clone this wiki locally