Trouble getting search results using MGTwitterEngine
        Posted  
        
            by cannyboy
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by cannyboy
        
        
        
        Published on 2010-04-19T14:49:56Z
        Indexed on 
            2010/04/19
            14:53 UTC
        
        
        Read the original article
        Hit count: 630
        
I'm using a version of Matt Gemmell's MGTwitterEngine, and I'm trying to get some results from the getSearchResultsForQuery method.
// do a search
[_engine getSearchResultsForQuery:@"#quote"];
// delegate method for handling result
- (void)searchResultsReceived:(NSArray *)searchResults forRequest:(NSString *)connectionIdentifier
{
    if ([searchResults count] > 0)
    {
        NSDictionary *singleResult = [searchResults objectAtIndex:1];
    NSString *text = [singleResult valueForKey:@"text"]; 
        NSLog(@"Text at Index one: \n %@", text);
    }
}
However, I never appear to get the result. In the console, I get:
Request 7E4C3097-88D6-45F1-90D2-AD8205FBAAC5 failed with error: Error Domain=HTTP Code=400 "Operation could not be completed. (HTTP error 400.)"
Is there a way around this? Am I implementing the delegate method right? (Also, I had difficulty installing the YAJL stuff for the engine, and wonder if that has something to do with it)
© Stack Overflow or respective owner