我为userstream编辑了TWRequest
示例代码。但解析并没有开始。
我们是否将performRequestWithHandler:
用于userstream?
NSURL* url=[NSURL URLWithString:@"https://userstream.twitter.com/2/user.json"];
TWRequest* timeline = [[TWRequest alloc] initWithURL:url parameters:nil requestMethod:TWRequestMethodPOST];
timeline.account = _account; // ACAccount
[timeline performRequestWithHandler:^(NSData* responseData, NSHTTPURLResponse* urlResponse, NSError* error) {
NSError* jsonError = nil;
id data = [NSJSONSerialization JSONObject:responseData options:NSJSONReadingMutableLeaves error:&jsonError];
// ...(Status Parse)
}];