Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/vim/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Iphone 获取特定用户的Twitter提要_Iphone_Twitter - Fatal编程技术网

Iphone 获取特定用户的Twitter提要

Iphone 获取特定用户的Twitter提要,iphone,twitter,Iphone,Twitter,Hii我正在尝试获取特定用户的twitter提要 我的代码: NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:@"https://api.twitter.com/1.1/statuses/user_timeline.json?screen_name=jadoon88"]];

Hii我正在尝试获取特定用户的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";
    }
);
错误:

 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";
    }
);

我在这个网站上搜索过,但没有得到正确的答案。我需要添加任何库吗??如果有人知道nice教程,那就太棒了

可能是你的URL出错了。@nmh可能是,你知道我必须使用哪个确切的URL吗?你在你的设备中配置了其他twitter帐户吗?@manujmv是的。你能告诉我参数屏幕的名称是用来做什么的吗??