Я пытаюсь показать плейлист с zend, но после того, как вы поймали информацию о плейлисте, я не знаю, что мне нужно для поиска эскиза или URL-адреса эскиз.Извлечь URL-адрес и миниатюру из Youtube API (zend framework)
Вот мой код:
require_once 'Zend/Loader.php'; // the Zend dir must be in your include_path
Zend_Loader::loadClass('Zend_Gdata_YouTube');
$yt = new Zend_Gdata_YouTube();
$playlistListFeed = $yt->getPlaylistListFeed('admaltais');
//step 1: show the playlist name and his URL
foreach ($playlistListFeed as $playlistEntry)
{
echo $playlistEntry->title->text . "</br></br>";
echo $playlistEntry->getPlaylistVideoFeedUrl() . "</br></br>";
}
//step 2: parse the playlist
$feedUrl = $playlistEntry->getPlaylistVideoFeedUrl();
$playlistVideoFeed = $yt->getPlaylistVideoFeed('http://gdata.youtube.com/feeds/api/playlists/B15D7FD35D3814A5');
foreach ($playlistVideoFeed as $playlistVideoFeedEntry)
{
echo $playlistVideoFeedEntry->title->text . "</br></br>";
//here i want to retrieve the infos
//var_dump($playlistVideoFeedEntry);
}