开发者

How can i see all videos in a youtube channel?

开发者 https://www.devze.com 2023-02-09 02:00 出处:网络
I want to get all videos in a YouTube channel. Is there any way to do that? C开发者_运维技巧an be with pagination, but I can\'t see any pagination (can\'t use ajax). I can get urls with PHP.See the De

I want to get all videos in a YouTube channel. Is there any way to do that? C开发者_运维技巧an be with pagination, but I can't see any pagination (can't use ajax). I can get urls with PHP.


See the Developers Guide | Videos uploaded by a specific user.

For example the following code retrieves the list of videos uploaded by $userName. You have to page through the results.

function getAndPrintUserUploads($userName)                    
{     
  $yt = new Zend_Gdata_YouTube();
  $yt->setMajorProtocolVersion(2);
  printVideoFeed($yt->getuserUploads($userName));
}  
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号