Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
error removing video from playlist
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Murphtime  
View profile  
 More options Jul 17 2012, 3:56 pm
From: Murphtime <m...@bostonvirtualimaging.com>
Date: Tue, 17 Jul 2012 12:56:02 -0700 (PDT)
Local: Tues, Jul 17 2012 3:56 pm
Subject: error removing video from playlist

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.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Murphtime  
View profile  
 More options Jul 17 2012, 4:02 pm
From: Murphtime <m...@bostonvirtualimaging.com>
Date: Tue, 17 Jul 2012 13:02:42 -0700 (PDT)
Local: Tues, Jul 17 2012 4:02 pm
Subject: Re: error removing video from playlist

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();

    }


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Murphtime  
View profile  
 More options Jul 19 2012, 10:33 pm
From: Murphtime <m...@bostonvirtualimaging.com>
Date: Thu, 19 Jul 2012 19:33:17 -0700 (PDT)
Local: Thurs, Jul 19 2012 10:33 pm
Subject: Re: error removing video from playlist

This is a follow up. I was able to build the DELETE request manually with
PHP and curl (not running it through the Zend $yt object) and I got it to
work. Our developer key is set up to use a private key to sign every
request made of the YouTube API. I am thinking that there might be a
problem with how the Zend GData library handles the delete() method for
playlist entries.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
api  
View profile  
 More options Jul 26 2012, 7:42 pm
From: api <music...@live.nl>
Date: Thu, 26 Jul 2012 16:42:08 -0700 (PDT)
Local: Thurs, Jul 26 2012 7:42 pm
Subject: Re: error removing video from playlist

With these 2 loops you are deleting every entry found of every playlist.
I added an exit after the delete; so only 1 entry got deleted. And that did
work. The first playlist entry of the first playlist was deleted.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »