Retrieving private Videos using the PHP Client Library


To retrieve private videos you will need to pass the full URI of the video entry as the $location parameter to the getVideoEntry method. Assuming we have a fully authenticated YouTube service object as $service:
$videoIdOfPrivateVideo = 'ABC123xyz';
$location = 'http://gdata.youtube.com/feeds/api/users/default/uploads/' . $videoIdOfPrivateVideo;
$privateEntry = $youTubeService->getVideoEntry(null, $location);
Update: Version 1.7.1 and higher of the PHP Client Library has a new method "getFullVideoEntry()" that should take care of this.