Matt Legend Gemmell Modesty is Lying

Mac OS X Cocoa and iPhone Development Services available at Instinctive Code.
Favorites icon
Favorites for iPhone
Speed-dial with style.
Mac OS X Cocoa and iPhone Developer for hire

Other Pages

Categories

Posted
6 June 2008 @ 4pm

Categories
Development, Source

Tags
, , , , , , , ,

MGTwitterEngine updated

This afternoon I found some time to update MGTwitterEngine, so it now offers the new API methods which were added by Twitter in April this year, specifically those listed below.

/* Get the current number of allowed API requests per hour. Calling this method does not count against the limit. */
- (NSString *)getRateLimitStatus;

/* Set your "location" (as shown in your profile, and returned via API methods in user data). This is just a string. */
- (NSString *)setLocation:(NSString *)location;

/* Choose the delivery method for any notifications you’ve enabled; can be "im", "sms" or "none". Passing nil or an empty string also means "none". */
- (NSString *)setNotificationsDeliveryMethod:(NSString *)method;

/* Block the specified user. */
- (NSString *)block:(NSString *)username;

/* Unblock the specified user. */
- (NSString *)unblock:(NSString *)username;

/* Perform a simple check to see if Twitter is up. */
- (NSString *)testService;

/* Returns the text shown on the Twitter site if there’s any upcoming scheduled downtime, in a somewhat eccentric HTML+CSS string format. */
- (NSString *)getDowntimeSchedule;

The first and last of those will cause a new delegate method to be called on your MGTwitterEngineDelegate object, namely:

- (void)miscInfoReceived:(NSArray *)miscInfo forRequest:(NSString *)identifier;

You can try those methods out to see how they work, or read the Twitter API documentation for more details.

Grab the code from the subversion repository as always, or just update your existing copy via Xcode or the command-line.


3 Comments

Dean
13 June 2008 @ 1pm

Nice update, might come in handy.

Don’t suppose those updates are in the iPhone version of MGTwitter Engine too. ?


Matt Legend Gemmell
13 June 2008 @ 1pm

Hi Dean,

The main MGTwitterEngine project is now compatible with both Mac OS X and the iPhone SDK; you should be able to build it for either platform. The separate “MGTwitterEngine-iPhone” project in subversion is for the old jailbroken iPhone platform, so you won’t need it for iPhone SDK development.


Dean
15 June 2008 @ 1pm

Awesome! Just what I wanted to hear. :)


Leave a Comment

Twenty Nine Twitter on iPhone