Skip to main content

Developer's Guide: PHP - YouTube APIs and Tools - Google Code

Popularity Report

Total Popularity Score: 0

Loading...
Loading...
Loading...
Loading...
Loading...
Loading...

Rank

Bookmark History

Saved by 3 people (-2 private), first by anonymouse user on 2008-01-05


Public Sticky notes

Retrieving a user's favorite videos

Highlighted by vier0n

Each YouTube user has an associated video feed corresponding to their favorite videos, at http://gdata.youtube.com/feeds/api/users/userID/favorites. The following code demonstrates how to fetch and display a user's favorites feed:

function getAndPrintUserFavorites($user)
{
  $yt = new Zend_Gdata_YouTube();
  printVideoFeed($yt->getUserFavorites($user));
}

Highlighted by vier0n