0
我使用了Zend的GData和YouTube API上傳vidoes到YouTube http://code.google.com/apis/youtube/2.0/developers_guide_php.html#Direct_Upload獲取加載影片響應到YouTube
當我上傳視頻我該如何捕捉生成的視頻ID,並在YouTube鏈接?
try
{
$newEntry = $yt->insertEntry($myVideoEntry,$uploadUrl,'Zend_Gdata_YouTube_VideoEntry');
}
catch (Zend_Gdata_App_HttpException $httpException)
{
echo $httpException->getRawResponseBody();
}
catch (Zend_Gdata_App_Exception $e)
{
echo $e->getMessage();
}
非常感謝你
非常感謝您! 它的工作原理! – Yan