1
是否有任何YouTube的PHP包裝,我可以用它來檢索他們的ID視頻的評級?YouTube PHP包裝
是否有任何YouTube的PHP包裝,我可以用它來檢索他們的ID視頻的評級?YouTube PHP包裝
使用Zend/Google的PHP庫。從Zend的Zend_Gdata_YouTube文檔:
<?php
$yt = new Zend_Gdata_YouTube($httpClient,
$applicationId,
$clientId,
$developerKey);
?>
從(也許是更好地記錄)Google site:
<?php
$videoEntry = $yt->getVideoEntry('the0KZLEacs');
echo 'Rating: ' . $videoEntry->getVideoRatingInfo() . "\n";
?>
*(教程)* [使用PHP與YouTube的API(http://www.ibm.com/developerworks/xml/library/x-youtubeapi /),2008 – Gordon 2010-08-18 16:13:14