开发者

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

开发者 https://www.devze.com 2023-03-18 08:44 出处:网络
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 a开发者_如何学Gobout ShareKit, but i

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 a开发者_如何学Gobout 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!


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).


U see the following example.you will get some idea http://mobile.tutsplus.com/tutorials/iphone/twitter-api-iphone/


There is also a third way, which is using http://three20.info/, that also implements main Twitter methods, but since all that you want is to retrieve public info I would stick with ASIHTTPRequest, as Barum Rho recommended. Easier and quicker.

Just to let you know more ways :)

0

精彩评论

暂无评论...
验证码 换一张
取 消