Raphael Stolt has a new post to his blog today looking at how you can use the Zend_Service_Twitter component of the Zend Framework to work with the lists on Twitter.
While debating some use cases for an event registration application I stumbled upon an interesting feature, which adds participants automatically to a Twitter list upon registration. [...] This post will show how this feature can be implemented by utilizing the Zend_Service_Twitter component, and how it then can be used in a Zend Framework based application.
The Zend_Service_Twitter component makes it simple to interact with Twitter's API and calling the lists part of the API is a snap. His script first checks to see if a list exists, creates it if it doesn't and will add a user to it when they're registering. The class also includes the usual delete and modify functionality for both the users in the list and the lists themselves.
He finishes with a simple form that uses his interface class to take in the person's twitter username and send it off to the service.