Search code examples
iphonetwittertweets

What's the best way to get latest tweets in iPhone(SDK, 3rd party libs, etc)?


I need to display a list of latest tweets in my iPhone app, and wondering what is the best way to do this, is there any SDK or existing projects doing this? I know about ShareKit, but it seems to be a method for sharing with standard UI, and no way to use it as a getter for latest tweets.

Thanks!


Solution

  • If you only need to get publicly available data, then Twitter has a pretty straight-forward HTTP API that outputs JSON.

    For example, to get a user's tweets: http://dev.twitter.com/doc/get/statuses/public_timeline

    You can easily use it by utilizing available library for JSON parsing (e.g. JSONKit) and HTTP client (e.g. ASIHTTPRequest, or NSData's + dataWithContentsOfURL).