Objective-c – using the twitter api in objective C

apiiphoneobjective-ctwitter

So, the twitter API has the method "statuses/update":

URL:
http://twitter.com/statuses/update.format

Formats: 
xml, json, rss, atom 

HTTP Method(s):
POST

Requires Authentication (about authentication):
true

API rate limited (about rate limiting):
false

Parameters:

    * status.  Required.  The text of your status update. URL encode as necessary. Statuses over 140 characters will be forceably truncated.
    * in_reply_to_status_id.  Optional. The ID of an existing status that the update is in reply to.

How would you call this method with objective-c (iphone)?

Best Solution

Rather than implementing the API on your own, you might prefer to use a Cocoa framework that has already been written. There are a few, but the most commonly used (as far as I can tell) is MGTwitterEngine.

If you do want to do it by hand, you would use NSURLConnection to download the data and then whatever you need to parse the output (NSXMLParser for XML, a bit harder for JSON).