0
各動画の嫌いなものや好きなものを取得するにはどうすればよいですか?ドキュメント内で見つけることができませんYouTube API経由で動画の好き嫌いを取り戻す方法
$youtube = new Google_Service_YouTube($client);
$searchResponse = $youtube->search->listSearch('id,snippet', array(
'type' => 'video',
'channelId' => 'UCCQeAYn0EfUNp2-RpJKbG5Q'
));
foreach($searchResponse['items'] as $result) {
$videoID = $result['modelData']['id']['videoId'];
$thumb = $result['modelData']['snippet']['thumbnails']['high']['url'];
$title = $result['modelData']['snippet']['title'];
$description = $result['modelData']['snippet']['description'];
// likes
}