0
嗨,我可以做一個PHP函數,我可以通過一系列的YouTube鏈接,它創建一個播放列表在YouTube上爲某個用戶,我已經閱讀YouTube文檔,但仍然無法弄清楚。 https://developers.google.com/youtube/2.0/developers_guide_php#Adding_a_Playlist_Video 對文檔它顯示下面的代碼。從鏈接陣列創建YouTube播放列表
$newPlaylist = $yt->newPlaylistListEntry();
$newPlaylist->summary = $yt->newDescription()->setText('description of my new playlist');
$newPlaylist->title = $yt->newTitle()->setText('title of my new playlist');
// post the new playlist
$postLocation = 'http://gdata.youtube.com/feeds/api/users/default/playlists';
try {
$yt->insertEntry($newPlaylist, $postLocation);
} catch (Zend_Gdata_App_Exception $e) {
echo $e->getMessage();
}