0

我正在寻找一种方法来使用 Zend 库在 YouTube 上获取特定视频播放列表的对象。我试过这段代码:

    $url = 'http://gdata.youtube.com/feeds/api/playlists/'.$_GET['plid'].'?v=2';
    $feed = $yt->getVideoFeed($url);
    $feed->delete();

但是 delete() 显然不是 getVideoFeed() 对象的函数。我该如何做这项工作?

先感谢您。

4

1 回答 1

0

PHP的YouTube API 开发人员指南应该为您指明正确的方向。

首先,您需要获取PlaylistListEntry您感兴趣的播放列表,如https://developers.google.com/youtube/2.0/developers_guide_php#Retrieving_Playlists中所述

然后,您可以在该对象上调用该delete()方法: https ://developers.google.com/youtube/2.0/developers_guide_php#Deleting_a_PlaylistPlaylistListEntry

于 2013-01-07T16:40:31.167 回答