On Tuesday, July 17, 2012 10:02:42 PM UTC+2, Murphtime wrote:
> Here is the entire block of code to delete all playlists:
> $playlistListFeed = $yt->getPlaylistListFeed("default");
> foreach ($playlistListFeed as $playlistListEntry) {
> $playlistVideoFeed = $yt->getPlaylistVideoFeed($playlistListEntry->getPlaylistVideoFeedUrl());
> foreach ($playlistVideoFeed as $playlistVideoEntry) {
> $playlistVideoEntry->delete();
> }
> }
> On Tuesday, July 17, 2012 3:56:02 PM UTC-4, Murphtime wrote:
>> I am trying to remove a video from a playlist using Zend Gdata library.
>> I am using the delete method of the PlaylistVideoEntry as follows:
>> $playlistVideoEntry->delete();
>> I am getting the following error:
>> *Fatal error*: Uncaught exception 'Zend_Gdata_App_HttpException' with
>> message 'Expected response code 200, got 401 <HTML> <HEAD> <TITLE>Unknown
>> authorization header</TITLE> </HEAD> <BODY BGCOLOR="#FFFFFF"
>> TEXT="#000000"> <H1>Unknown authorization header</H1> <H2>Error 401</H2>
>> </BODY> </HTML> '
>> The strange thing is that I can use the same YouTube API connection
>> object to delete entire videos so it seems the authentication is valid.
>> There seems to be be something different about how the delete method is
>> handled for playlist video entries. Any help would be appreciated.