twitterlogo-shadow-2.jpgIf you listened to yesterday’s Developer Jam Session, a good part of it discussed building Twitter apps on top of Tropo (slides are available). I’ve made the source code available from our Github account at:

https://github.com/tropo/tropo-twitter-samples

You are welcome to copy/paste that code into your own Tropo account and start building Twitter apps! (and Tropo accounts are free if you don’t have one already)

The five sample apps are:

  • twitter-helloback.js – A one-line “hello world” example that in reality is rather pointless, but shows all you need to do. It was written in JavaScript but could be done in any language. You can see this in action by sending a tweet to @tropohello
  • nightservice.py – An improved version of a python app I wrote about earlier this year that could be used to provide a “night service” when your staff goes home for the evening. You can try this app by tweeting to @stratohelp
  • twitter-keywordalerting.py – Scans Twitter replies or mentions for certain keywords (fail, faq, help, documentation) and then either sends someone a SMS alert or replies back with specific messages. You can try it out by tweeting to: @tropohelp
  • clubtropo.js – A simple JavaScript app that replies back with a message if you send it the correct phrase. Could be used for a contest or to let people RSVP. My colleague Justin Dupree wrote up a great step-by-step walkthrough on how to get started with this app. You can try it at, of course: @clubtropo
  • yahooweather.py – A new version of the python weather app I first wrote about back in March (and wrote later about how to tweak it for different channels). Tweet a US ZIP code to the app and it will tweet back the latest weather conditions. Try it out at: @danweathertest

I’ll probably add some more apps to the repository over time as we have some other good Twitter samples (and please contact me if you have a sample app you would like to contribute).

If you do try these out in your Tropo account, remember to watch out for duplicate tweets when you are testing. (I’ve been caught by this in testing any number of times.)

Have fun with it… and we’re looking forward to seeing what you will build with Tropo and Twitter!

P.S. Speaking of Twitter, are you following us on Twitter? We’re at @tropo, @voxeo, @phono and more…

Originally from Voxeo Blogs