如何将我的iphone应用程序与twitter api集成?

问题描述:

我需要鸣叫,也检索tweets.is任何可用于此,任何示例应用程序或代码的API。如何将我的iphone应用程序与twitter api集成?

。感谢您提前

+2

是的,你只需要搜索。 – BoltClock

+0

您是否尝试过在此链接上搜索? http://www.google.com – Legolas

这是现在内置到iOS5。看看在Twitter Framework Reference

,如果你打算在5.0以前支持的iOS版本,对MGTwitterEngine一看,http://mattgemmell.com/2008/02/22/mgtwitterengine-twitter-from-cocoa/

看到此链接可能是它帮助到U

https://github.com/bengottlieb/Twitter-OAuth-iPhone/

这里的一些代码

- (void)viewDidAppear: (BOOL)animated { 

    // Twitter Initialization/Login Code Goes Here 
    if(!_engine){ 
     _engine = [[SA_OAuthTwitterEngine alloc] initOAuthWithDelegate:self]; 
     _engine.consumerKey = kOAuthConsumerKey; 
     _engine.consumerSecret = kOAuthConsumerSecret; 
    } 

} 
if([_engine isAuthorized]) 
    { 


     [_engine sendUpdate:@"your posting data"]; 


    } 

进口authtwitterengine

我同意本杰,你应该尝试使用内置于iOS 5的Twitter API。以下是:http://www.peterfriese.de/the-accounts-and-twitter-framework-on-ios-5/

+0

是的,我尝试了iOS 5中的twitter框架并且工作正常 – sarath