2011-03-03 86 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]); 
    } 
} 

上面的代碼可以幫助