所以,这是我获取youtube用户的公共(public)播放列表的代码:functiongetyoutubeplaylists($userName){$yt=connectyoutube();$yt->setMajorProtocolVersion(2);$playlistListFeed=$yt->getPlaylistListFeed($userName);foreach($playlistListFeedas$playlistListEntry){$playlist['title']=$playlistListEntry->title->text;$playlist['id']=