2011-03-03 133 views
0

我尝试使用MGTwitterEngine Twitter的iPhone集成, 这是同时支持XAUTH和OAuth按照它的文档 和首先,我尝试使用XAUTH作为功能我打电话叫getXAuthAccessTokenForUsername使用Twitter IOS SDK的OAuth

但我的应用是在发展阶段..和Twitter不批准它..发布后,他们会不会批准?

我不能使用MGTwitterEngine

任何人可以向使用OAuth帮我...

即使我不能够使用OAuth版本从源 http://mobile.tutsplus.com/tutorials/iphone/twitter-api-iphone/comment-page-1/

我可以用它成功地更新我的状态......但不能做任何别的东西

我尝试

[_engine getUserInformationForEmail:@"[email protected]"]; 
//_engine is the twitterengine object 

然后得到错误

请求9EF8DE73-6E04-46F1-9D90 -484F90FCA44F失败,错误:错误域= HTTP代码= 404“操作无法完成。 (HTTP错误404) “

请求016DB024-1BFB-4E9B-8734-3FFCCB93D6E4失败,错误:错误域= HTTP代码= 403” 的操作无法完成。 (HTTP错误403)”

请帮我

阿米特Battan

回答

0

当我今天打电话

NSString *abc = [twitterObj getUserInformationFor:@"amit_battan"]; 
NSLog(@"abc...%@",abc); 

然后我得到的日志

abc...F4BBA3C6-5783-46FF-A383-1B9C2319AB43 
Request F4BBA3C6-5783-46FF-A383-1B9C2319AB43 succeeded 

意味着它可以正常工作......

但如何我得到的输出。在该函数/变量

+0

做工精细所有其他API而不是“[twitterObj getUserInformationForEmail:@“battan20 @ gmail的。 COM“];” 在这种情况下给404错误。 – 2011-03-04 13:37:07

0
-(void)userInfoReceived:(NSArray *)userInfo forRequest:(NSString *)connectionIdentifier { 
    NSMutableArray *mFollowerArray = nil; 
    mFollowerArray = [userInfo retain]; 
    NSLog(@"count = %d",[mFollowerArray count]); 
    for (int i=0; i<[mFollowerArray count]; i++) { 
     NSLog(@" %@",[mFollowerArray objectAtIndex:i]); 
    } 
} 

上面的代码可以帮助