Get complete playlist listing for a YouTube User via API
问题 So, here's my code for getting a youtube user's public playlists: function getyoutubeplaylists($userName) { $yt = connectyoutube(); $yt->setMajorProtocolVersion(2); $playlistListFeed = $yt->getPlaylistListFeed($userName); foreach ($playlistListFeed as $playlistListEntry) { $playlist['title'] = $playlistListEntry->title->text; $playlist['id'] = $playlistListEntry->getPlaylistID(); $playlists[] = $playlist; $playlistVideoFeed = $yt->getPlaylistVideoFeed($playlistListEntry-