Iphone 获取特定用户的Twitter提要
Hii我正在尝试获取特定用户的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"]];
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是的。你能告诉我参数屏幕的名称是用来做什么的吗??