Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
$playlistID = '9C700F98F6D01E47';
$playlistURI = '';
$ytData = simplexml_load_file($playlistURI . $playlistID . '?v=2');
echo "<br/><br/><br/>";
foreach ($ytData->entry as $video) {
echo '<h3>'.$video->title . '</h3>';
$videoMedia = $video->children("")->group;
echo "<br/><br/>";
echo $videoMedia->videoid;
echo '<img src="' . $videoMedia->thumbnail->attributes()->url .'" />';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.