1
ich想要編碼一個網站與一些YouTube頻道的信息。我得到了以下參數:Youtube頻道與PHP的參數(年齡,描述,上傳數量...)
訂閱:
<?php
$json = file_get_contents("http://gdata.youtube.com/feeds/api/users/*username*?alt=json");
$data = json_decode($json, true);
echo '' . $data['entry']['yt$statistics']['subscriberCount'];
?>
香奈兒瀏覽次數:
<?php
$json = file_get_contents("http://gdata.youtube.com/feeds/api/users/*username*?alt=json");
$data = json_decode($json, true);
echo '' . $data['entry']['yt$statistics']['viewCount'];
?>
總-瀏覽次數:
<?php
$json = file_get_contents("http://gdata.youtube.com/feeds/api/users/*username*?alt=json");
$data = json_decode($json, true);
echo '' . $data['entry']['yt$statistics']['totalUploadViews'];
?>
但是我怎麼能得到上傳的視頻的計數。我只想顯示此用戶上傳的視頻數量。
我想顯示年齡,說明,摘錄,他加入YouTube的日期。
有人能幫助我嗎?