// Channels: list
// Source : https://developers.google.com/youtube/v3/docs/channels/list
$content= file_get_contents("https://www.googleapis.com/youtube/v3/channels/?part=contentDetails&id={id}&key={key}");
$data=json_decode($content);
$id= $data->items[0]->contentDetails->relatedPlaylists->uploads;
// PlaylistItems: list
// Source : https://developers.google.com/youtube/v3/docs/playlistItems/list
$content= file_get_contents("https://www.googleapis.com/youtube/v3/playlistItems/?part=snippet&maxResults=10&playlistId=".$id."&key=AIzaSyDl96t7wglLtgX_JtBzruvj6y4g6X-C-sc");
// video list
$data=json_decode($content);
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.