nst / STTwitter

A stable, mature and comprehensive Objective-C library for Twitter REST API 1.1
BSD 3-Clause "New" or "Revised" License
999 stars 165 forks source link

Empty results array but with success callback #239

Open vargarobert opened 8 years ago

vargarobert commented 8 years ago

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 commented 8 years ago

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.