function _video_apiclient_youtube_gdata in Video 6.2
1 call to _video_apiclient_youtube_gdata()
- _video_apiclient_youtube_video_entry in includes/
apiclient.inc
File
- includes/
apiclient.inc, line 95 - Some functions for using video hosting providers api (Youtube, Google Video, etc..) Part of this code has been inspired by the video_cck module and adapted for the video module by jyamada1
Code
function _video_apiclient_youtube_gdata($http_client = NULL) {
_video_apiclient_youtube_init('youtube');
try {
$yt = new Zend_Gdata_YouTube($http_client);
// Set API version to 2.0.
$yt
->setMajorProtocolVersion(2);
} catch (Zend_Gdata_App_HttpException $e) {
watchdog('youtube_video', 'Authentication error while creating a YouTube connection object: %error', array(
'%error' => $e
->getMessage(),
), WATCHDOG_ERROR);
}
return $yt;
}