It's not that working on the Twitter interface is hard, it's more that I work in an interrupt driven environment, and example code like this is of a pretty low priority. Anyway - I finished off the Account methods just now, although I'm getting a 500 from Twitter on image uploads (for the profile). I'm figuring that's their problem; a 500 does indicate a server issue, and the same code works fine with Facebook.
Anyway, here's an example of updating the profile data via their API:
model := TwitterModel new.
profile := ProfileUpdate new url: 'http://www.cincomsmalltalk.com/blog/blogView?content=bio'.
model updateProfile: profile.
Which works fine; I just used that twice, to set the profile url back and forth. I should have the entire public API covered shortly, at which point I'll see if I can get Twitter to list the Smalltalk library on their API Wiki.
In the meantime, I'd be very happy if someone were willing to implement OAuth :)
Technorati Tags:
twitter, social media, Twitter API