📜  如何从 YouTube API 获取 YouTube 视频缩略图? - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:21.028000             🧑  作者: Mango

代码示例1
$data = file_get_contents("https://www.googleapis.com/youtube/v3/videos?key=YOUR_API_KEY&part=snippet&id=T0Jqdjbed40");
$json = json_decode($data);
var_dump($json->items[0]->snippet->thumbnails);