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

Empty results array but with success callback #239

Open
vargarobert opened this issue Jan 27, 2016 · 1 comment
Open

Empty results array but with success callback #239

vargarobert opened this issue Jan 27, 2016 · 1 comment

Comments

@vargarobert
Copy link

I have the below code block and get returned a successful response but it contains no array, however if I remove the "popular" result type I get results.

[[TwitterAPI twitterAPIWithOAuth] getSearchTweetsWithQuery:"oculus+rift+shipping" geocode:nil lang:nil locale:nil resultType:@"popular" count:@"7" until:nil sinceID:nil maxID:nil includeEntities:nil callback:nil successBlock:^(NSDictionary *searchMetadata, NSArray *statuses) { NSLog(@"-- success, more to come: %@, %@", searchMetadata, statuses); self.twitterArticleRelatedObjects = statuses; [self.collectionView reloadData]; } errorBlock:^(NSError *error) { //NSLog(@"-- %@", error); }];

*result:
*
2016-01-27 18:58:40.059 Tech Digest[1968:307821] -- success, more to come: { "completed_in" = "0.038"; count = 7; "max_id" = 0; "max_id_str" = 0; query = "oculus+rift+shipping"; "since_id" = 0; "since_id_str" = 0; }, ( )

@nst
Copy link
Owner

nst commented Jan 28, 2016

I'm not sure if it's a STTwitter issue or a Twitter API issue.

You can use the OS X demo project to get the request in curl format and ensure there's nothing wrong with it.

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