Google YouTube Playlist

$playlist = eden('google')->youtube($_SESSION['token'], '[DEVELOPER_KEY]')->playlist();
Figure 1. YouTube Playlist Methods
Method Arguments Returns Description
$playlist->getList($userId = self::DEFAULT_VALUE);
  1. string
array Returns user playlist
$playlist->create($title, $summary, $userId = self::DEFAULT_VALUE);
  1. string
  2. string
  3. string
array Create a playlist
$playlist->update($title, $summary, $playlistId, $userId = self::DEFAULT_VALUE);
  1. string
  2. string
  3. string
  4. string
array Create a playlist
$playlist->addVideo($videoId, $position, $playlistId);
  1. string
  2. string
  3. string
array Add video to a playlist
$playlist->updateVideo($position, $playlistId, $entryId);
  1. string
  2. string
  3. string
array Add video to a playlist
$playlist->removeVideo($playlistId, $entryId);
  1. string
  2. string
array Remove a video in the playlist
$playlist->delete($playlistId, $userId = self::DEFAULT_VALUE);
  1. string
  2. string
array Delete a playlist

© 2012 Openovate Labs. All rights reserved.