Tropo is part of CiscoLearn More

Receiving Text Messages

Working with incoming text messages is as smooth and simple as voice calls - possibly even easier. At it's most basic, it's actually the same code - much of Tropo functions exactly the same way whether you're communicating via voice or text, and that's because its actually the same API; there's no need to learn two different things.

If you want to receive (or send) text messages, you need a phone number assigned to your application. To add a phone number, first log in at the Tropo website, then go to "Your Applications" and open your application so you can make changes to it. Near the bottom of the application you'll see an "Add a new phone number" link; click on it, select your area code and you're ready to go!

Check out this extremely simple example - whenever you text the application, doesn't matter with what, it will respond with "Really, it's that easy."

say("Really, it's that easy.");
say "Really, it's that easy."
<?php
say("Really, it's that easy.");
?>
say("Really, it's that easy.")
say("Really, it's that easy.")

Now, as mentioned, that's as basic as it comes. In a real world application, you'll likely need to use the content of the incoming text message, which is covered next.