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

YouTube API Developer's Guide for PHPは、正しい方向性を示しているはずです。

まず、https://developers.google.com/youtube/2.0/developers_guide_php#Retrifying_PlaylistsPlaylistListEntryで説明されているように、関心のあるプレイリストの

次に、そのオブジェクトでdelete()メソッドを呼び出すことができます: https://developers.google.com/youtube/2.0/developers_guide_php#Deleting_a_PlaylistPlaylistListEntry

于 2013-01-07T16:40:31.167 に答える