I'm using youtube data API v3 to make app like youtube for IOS in Objective-C.
successfully used YouTube IFrame Player API with video ID
Now i want to get youtube Home video List to show my IOS application home screen. At first i don't want to show playlist or any thing else just want to show Home video list of youtube like this when we open youtube we see a list.
If any one now how can i do this and what will be the parameters for API call? If any one can share any example code thats very help full Thanks.
my code
NSString *url=@"https://www.googleapis.com/youtube/v3/activities";
NSString *apiKey=@"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";
AFHTTPRequestOperationManager *manager = [AFHTTPRequestOperationManager manager];
NSDictionary *parameters = @{
@"part": @"snippet",
@"home": @"true",
@"key" : apiKey
};
[manager GET:url
parameters:parameters
success:^(AFHTTPRequestOperation *operation, id responseObject) {
// code
NSLog(@"response");
} failure:^(AFHTTPRequestOperation *operation, NSError *error) {
/// code
NSLog(@"err");
}];