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));
}
精彩评论