获取特定用户的Twitter Feed

时间:2014-05-13 07:21:45

标签: iphone twitter

我想尝试获取特定用户的推特..

我的代码:

 NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL
                                                              URLWithString:@"https://api.twitter.com/1.1/statuses/user_timeline.json?screen_name=jadoon88"]];

 NSData *response = [NSURLConnection sendSynchronousRequest:request
                                                 returningResponse:nil error:nil];

 NSError *jsonParsingError = nil;
 NSArray *publicTimeline = [NSJSONSerialization JSONObjectWithData:response
                                                                  options:0 error:&jsonParsingError];
        NSLog(@"%@",publicTimeline);

错误:

 errors = (
            {
        code = 215;
        message = "Bad Authentication data";
    }
);

我在这个网站上搜索过但没有得到正确答案。我需要添加任何库吗?如果有人知道好的教程比它会很棒

0 个答案:

没有答案
相关问题