This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"session": { | |
"accountId": "9178", | |
"callId": "33e6f280ec9e740ad57ec3464175e502", | |
"from": { | |
"channel": "VOICE", | |
"id": "mheadd", | |
"name": "unknown", | |
"network": "PSTN" | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Include Tropo classes. | |
require('TropoClasses.php'); | |
// Include Limonade framework. | |
require('path/to/limonade/lib/limonade.php'); | |
dispatch_post('/start', 'zip_start'); | |
function zip_start() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Include Tropo classes. | |
require('TropoClasses.php'); | |
// Include Limonade framework. | |
require('path/to/limonade/lib/limonade.php'); | |
// The URL to the Google weather service. Renders as XML doc. | |
define("GOOGLE_WEATHER_URL", "http://www.google.com/ig/api?weather=%zip%&hl=en"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Include Tropo classes. | |
require('TropoClasses.php'); | |
// Include Limonade framework. | |
require('path/to/limonade/lib/limonade.php'); | |
// The URL to the Google weather service. Renders as XML doc. | |
define("GOOGLE_WEATHER_URL", "http://www.google.com/ig/api?weather=%zip%&hl=en"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"session": { | |
"accountId": "9178", | |
"callId": "69862f1aa71f828cc49fe85d9188ecc2", | |
"from": { | |
"channel": "TEXT", | |
"id": "[email protected]", | |
"name": "unknown", | |
"network": "JABBER" | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Some constants we will use to interact with the Twitter API. | |
define('FORMAT', '.json'); | |
define('TWITTER_API_ENDPOINT', 'http://api.twitter.com/1/statuses/show/'); | |
// Some constants we will use to save documents in CouchDB. | |
define('COUCHDB_HOST', 'http://127.0.0.1'); | |
define('COUCHDB_PORT', '5984'); | |
define('COUCHDB_DB_NAME', 'twittertest'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Inlcude the PHPGrammar class file. | |
require("path/to/PHPGrammar.php"); | |
// An array to hold names and phone numbers of employees (you could easily get this from any data source). | |
$employees = Array(); | |
$employees[0] = Array("fname" => "Amanda", "lname" => "Hugankiss", "phone" => "7148596547"); | |
$employees[1] = Array("fname" => "Hugh", "lname" => "Jazz", "phone" => "7148745213"); | |
$employees[2] = Array("fname" => "Joe", "lname" => "Schmo", "phone" => "7845987456"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Include Tropo classes. | |
require('library/TropoClasses.php'); | |
// Create a new instance of the Tropo object. | |
$tropo = new Tropo(); | |
// Create a new Tropo Session Object and determine the channel in use. | |
$session = new Session(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"session": { | |
"accountId": "9178", | |
"callId": "4db51dcffa334accbd8012cf1634c146", | |
"from": { | |
"channel": "VOICE", | |
"id": "3026550235", | |
"name": "unknown", | |
"network": "SIP" | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
No. Time Source Destination Protocol Info | |
441 42.940212 XXX.XXX.XXX.XXX 206.187.4.47 HTTP POST /uhtbin/cgisirsi/lfqN3Ys71z/DESTATELIB/0/57/49 HTTP/1.1 (application/x-www-form-urlencoded) | |
Frame 441 (101 bytes on wire, 101 bytes captured) | |
Ethernet II, Src: IntelCor_4b:3d:56 (00:15:17:4b:3d:56), Dst: Cisco-Li_c5:39:a5 (00:1c:10:c5:39:a5) | |
Internet Protocol, Src: XXX.XXX.XXX.XXX (XXX.XXX.XXX.XXX), Dst: 206.187.4.47 (206.187.4.47) | |
Transmission Control Protocol, Src Port: 51704 (51704), Dst Port: http (80), Seq: 851, Ack: 1, Len: 35 | |
[Reassembled TCP Segments (885 bytes): #440(850), #441(35)] | |
Hypertext Transfer Protocol | |
POST /uhtbin/cgisirsi/lfqN3Ys71z/DESTATELIB/0/57/49 HTTP/1.1\r\n |