Posts tagged with “twitter”

February 25

Twitter Search API in PHP

The SCCC sent out an email to all the campus leaders encouraging them to use twitter for their campuses. The email also mentioned that state level twitter accounts were being created. It occurred to me that it would be cool to be able to have multiple people posting to a central account without passing around passwords.

I realized that having a script find tweets from certain users with specific hash tags, and then retweeting them as original content would be the perfect way to do this. Tweeting from PHP is pretty well understood. There are numerous libraries and classes to help you do just that, but I haven’t really seen very many PHP libraries for searching twitter.

So I wrote one.

It implements the entire search API as it exists today. And was fun to write too! I got to play with method chaining, something that I haven’t really gotten into before. Surprisingly simple to implement.

If you’re code inclined, feel free to check it out at the twitter search api page here on my very own site.

02:26 AM | Tags: , ,