Get complete playlist listing for a YouTube User via API

前端 未结 3 1942
刺人心
刺人心 2021-01-13 05:39

So, here\'s my code for getting a youtube user\'s public playlists:

function getyoutubeplaylists($userName) {
$yt = connectyoutube();
$yt->setMajorProtoco         


        
3条回答
  •  隐瞒了意图╮
    2021-01-13 06:12

    This is a useful Zend function for retrieving not only the next page but all available entries for a feed.

     $playlistListFeed = $yt->retrieveAllEntriesForFeed($yt->getPlaylistListFeed($userName));
    

提交回复
热议问题