Google YouTube Favorites

$favorites = eden('google')->youtube($_SESSION['token'], '[DEVELOPER_KEY]')->favorites();
Figure 1. YouTube Favorites Methods
Method Arguments Returns Description
$favorites->getList($userId = self::DEFAULT_VALUE);
  1. string
array Retrieving all user's favorite videos.
$favorites->getSpecific($favoriteVideoId, $userId = self::DEFAULT_VALUE);
  1. string
  2. string
array Retrieving specific user's favorite videos.
$favorites->addFavorites($videoId, $userId = self::DEFAULT_VALUE);
  1. string
  2. string
array Retrieving a user's favorite videos.
$favorites->removeFavorites($favoriteVideoId, $userId = self::DEFAULT_VALUE);
  1. string
  2. string
array Retrieving a user's favorite videos.

© 2012 Openovate Labs. All rights reserved.