[英]Integrate the Twitter in IOS sdk
In my app, I want to get the list of following/follower friends from the twitter. 在我的应用中,我想从Twitter获取关注/关注好友的列表。
Right now, i just able to fetch the name & id of the followers but not the followings. 现在, 我只能获取关注者的名称和ID,但不能获取关注者的ID。
My code is as follow: 我的代码如下:
-(void) getTwitterFriendsIDListForThisAccount{
NSURL *url = [NSURL URLWithString:@"http://api.twitter.com/1/followers/ids.json"];
NSDictionary *p = [NSDictionary dictionaryWithObjectsAndKeys:myAccount.username, @"screen_name", nil];
TWRequest *twitterRequest = [[TWRequest alloc] initWithURL:url parameters:p requestMethod:TWRequestMethodGET];
[twitterRequest setAccount:myAccount];
[twitterRequest performRequestWithHandler:^(NSData *responseData, NSHTTPURLResponse *urlResposnse, NSError *error)
{
if (error) {
}
NSError *jsonError = nil;
// Convert the response into a dictionary
NSDictionary *twitterFriends = [NSJSONSerialization JSONObjectWithData:responseData options:NSJSONWritingPrettyPrinted error:&jsonError];
NSArray *IDlist = [twitterFriends objectForKey:@"ids"];
NSLog(@"response value is: %@", IDlist);
}
How can I get the following list ids?? 如何获得以下列表ID? and also the email_ids, if possible. 如果可能的话,还有email_ids。
Sometimes it shows the error for the migration. 有时它显示迁移错误。 How to migrate from 1.0 to 1.1? 如何从1.0迁移到1.1?
Thank you, 谢谢,
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.