tags:

views:

38

answers:

1

Anyone got a function which returns the thumbnails of a youtube account??

A: 

Check out the Youtube developers guide

try something like this:

function getUserProfilePicture($userName) 
{
  $yt = new Zend_Gdata_YouTube();
  $yt->setMajorProtocolVersion(2);

  $userProfileEntry = $yt->getUserProfile($userName);

  return $userProfileEntry->getThumbnail()->getUrl();
} 

Or did you mean thumbnails of the uploaded videos? That is also documented in the developers guide.

windyjonas
tx, but do i need to downlaod zend?? I am currently working with CI framework.
yous