I'm not sure if this has been done before but I've been doing some work with the newly-released Arduino WiFi shield; it doesn't have much user-generated content available for it at this time. I needed to get the Arduino to tweet over WiFi as a part of my project, and didn't want to bother getting into OAuth, so I did a simple modification of the Twitter Library already present for the Ethernet Shield to port it over. Hope it helps someone out.

Installation:

1) Install the Arduino Twitter Library at http://arduino.cc/playground/Code/TwitterLibrary2) Overwrite the Twitter.h and Twitter.cpp files within the newly installed library with the attached files.3) Enjoy.

Note that at this rudimentary stage this will make your twitter library no longer compatible with the Ethernet Shield. To restore, just re-install.

Sample code to tweet, note you will still need to grab a token as was needed with the original library.

I've changed the header names to Twitter_WiFi.h and Twitter_WiFi.cpp (The files are attached.)So you can choose to include either one of them depending on whether you're using the Ethernet or WiFi module.Hope this makes things easier and neater.