Don't like ads? PRO users don't see any ads ;-)
Guest

tropo example

By: a guest on Oct 23rd, 2011  |  syntax: PHP  |  size: 0.30 KB  |  hits: 16  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php
  2.  
  3. require 'tropo.class.php';
  4.  
  5. $session = new Session();
  6.  
  7. $initialText = $session->getInitialText();
  8. $to = $session->getTo();
  9. $from = $session->getFrom();
  10.  
  11. $tropo = new Tropo();
  12.  
  13. $tropo->say("To: $to   and From: $from    and Message: $initialText");
  14.  
  15. return $tropo->RenderJson();
  16.  
  17. ?>
  18.