Is there a way to get a list of all youtube videos in a channel into a PHP array. I need the embed URL, Video Title and Description.
How could I do this?
Is there a way to get a list of all youtube videos in a channel into a PHP array. I need the embed URL, Video Title and Description.
How could I do this?
I have used
<?php
$source = 'http://gdata.youtube.com/feeds/api/videos?author=blah';
// load as string
$xmlstr = file_get_contents($source);
$xmlcont = new SimpleXMLElement($xmlstr);
foreach($xmlcont as $url)
{
echo "{$url->id}>{$url->title}>{$url->content}>{$url->published}>
";
}
?>