Advertise here




Advertise here

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Youtube Data API v3 yields no data in my table view

AshtashooterAshtashooter MalaysiaPosts: 25New Users @
edited November 2014 in iOS SDK Development
I'm using AFNetworking 2.4.1 to fetch YouTube thumbnails and the thing is I get empty cells when I use YouTube v3. I have no problem with v2 though.

What seems to be the problem in the below code?
AFHTTPRequestOperationManager *manager = [AFHTTPRequestOperationManager manager];
            [manager GET:@"https://www.googleapis.com/youtube/v3/videos?part=snippet&chart=mostPopular&key={YOUR_API_KEY}" parameters:nil success:^(AFHTTPRequestOperation *operation, id responseObject) {
                _objects = [[responseObject objectForKey:@"data"]objectForKey:@"items"];
                [self.tableView reloadData];
            } failure:^(AFHTTPRequestOperation *operation, NSError *error) {
                NSLog(@"Error: %@", error);

            }];
Thanks in advance!

Replies

Sign In or Register to comment.