-
Notifications
You must be signed in to change notification settings - Fork 158
api reference
Jason Leung edited this page Sep 4, 2015
·
3 revisions
(under construction)
// Return a std PHP object
$video = $youtube->getVideoInfo('rie-hPVJ7Sw');
// Return a std PHP object
$channel = $youtube->getChannelByName('xdadevelopers');
// Return a std PHP object
$channel = $youtube->getChannelById('UCk1SpWNzOs4MYmr0uICEntg');
// Return a std PHP object
$playlist = $youtube->getPlaylistById('PL590L5WQmH8fJ54F369BLDSqIwcs-TCfs');
// Return an array of PHP objects
$playlists = $youtube->getPlaylistsByChannelId('UCk1SpWNzOs4MYmr0uICEntg');
// Return an array of PHP objects
$playlistItems = $youtube->getPlaylistItemsByPlaylistId('PL590L5WQmH8fJ54F369BLDSqIwcs-TCfs');
// Return an array of PHP objects
$activities = $youtube->getActivitiesByChannelId('UCk1SpWNzOs4MYmr0uICEntg');
// Parse Youtube URL into videoId
$videoId = $youtube->parseVIdFromURL('https://www.youtube.com/watch?v=moSFlvxnbgk');
// result: moSFlvxnbgk
// Search playlists, channels and videos, Return an array of PHP objects
$results = $youtube->search('Android');
// Search only Videos, Return an array of PHP objects
$videoList = $youtube->searchVideos('Android');
// Search only Videos in a given channel, Return an array of PHP objects
$videoList = $youtube->searchChannelVideos('keyword', 'UCk1SpWNzOs4MYmr0uICEntg', 50);
$results = $youtube->searchAdvanced(array( /* params */ ));