The Changelog

Open Source moves fast. Keep up.

MGTwitterEngine – Objective-C Twitter library for the iPhone

If you need to integrate Twitter into your iPhone app or build your own Twitter client, you might check out MGTwitterEngine from Matt Gemmell. MGTwitterEngine consumes the Twitter XML API and supports both NSXMLParser and libxml.

When building your controller, the library supports a few callbacks:

- (void)requestSucceeded:(NSString *)requestIdentifier;
- (void)requestFailed:(NSString *)requestIdentifier withError:(NSError *)error;
- (void)statusesReceived:(NSArray *)statuses forRequest:(NSString *)identifier;
- (void)directMessagesReceived:(NSArray *)messages forRequest:(NSString *)identifier;
- (void)userInfoReceived:(NSArray *)userInfo forRequest:(NSString *)identifier;

If Obj-C is a bit too low-level for you, take a look at Appcelerator Titanium Mobile which has an easy JavaScript API that includes network API support. If you missed it, also be sure to check out Episode 0.0.8 with Marshall Culpepper.

[Source on GitHub] [Matt’s blog post]

Have comments? Send a tweet to @TheChangelog on Twitter.

Subscribe to The Changelog Weekly – our weekly email covering everything that hits our open source radar.