v3 上推荐的了解用户是否将他/她的 google 帐户链接到 youtube 帐户的方法是进行 channels.list() 调用,然后检查 channels.status.isLinked
(见:https ://code.google.com/p/gdata-issues/issues/detail?id=4846#c1 )
例如:
GTLQueryYouTube *query = [GTLQueryYouTube queryForChannelsListWithPart:@"status"];
channelListTicket = [service executeQuery:query
completionHandler:^(GTLServiceTicket *ticket,
GTLYouTubeChannelListResponse *channelList,
NSError *error) {
if ([[channelList items] count] > 0) {
GTLYouTubeChannel *channel = channelList[0];
NSLog(@"%@", channel.status.isLinked); // 0 if not linked, 1 if linked
[...]
}
}];