Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getSearchTweetsWithQueryDictionary #14

Closed
miguelgutierrez opened this issue Jun 26, 2013 · 2 comments
Closed

getSearchTweetsWithQueryDictionary #14

miguelgutierrez opened this issue Jun 26, 2013 · 2 comments

Comments

@miguelgutierrez
Copy link

Thanks Nicolas for your work.

I used Twitter api 1.0 with "search.json?q=xx?rpp=yy" and now with "q=xx?count=yy"

Perhaps is interesting to add a method with NSDictionary parameter to manage count:

  • (void)getSearchTweetsWithQueryDictionary:(NSDictionary *)search
    successBlock:(void(^)(NSDictionary *searchMetadata, NSArray *statuses))successBlock
    errorBlock:(void(^)(NSError *error))errorBlock
    {
    [_oauth getResource:@"search/tweets.json" parameters:search successBlock:^(id response) {

    NSDictionary *searchMetadata = [response valueForKey:@"search_metadata"];
    NSArray *statuses = [response valueForKey:@"statuses"];
    
    successBlock(searchMetadata, statuses);
    

    } errorBlock:^(NSError *error) {
    errorBlock(error);
    }];

}

Thanks
Miguel

@nst
Copy link
Owner

nst commented Jun 26, 2013

I agree. I just added a method to handle all possible search parameters 3afe08a

@miguelgutierrez
Copy link
Author

Thanks

@nst nst closed this as completed Jun 27, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants