Thursday, January 19, 2012

[YouTube-API] Re: cannot delete an uploaded video, .net

Hello,

You need to retrieve the video entry from the uploads feed, or it
won't be editable. The Uri you'd want to use is

"http://gdata.youtube.com/feeds/api/users/default/uploads/" +
videoID

(I'm told by our tech writer that we're real close to getting the
docs updated, as it comes up multiple times per week and the current
docs don't reflect the correct type of request.)

Cheers,
-Jeff Posnick, YouTube API Team
groups.google.com/group/youtube-api-gdata | apiblog.youtube.com |
@YouTubeDev


On Jan 17, 10:05 pm, "j...@dawleyassociates.com"
<joedawleyassocia...@gmail.com> wrote:
> I'm having a problem with the following code:
>
>                 YouTubeRequest request = new YouTubeRequest(settings);
>
>                 Uri  videoEntryUrl = new Uri("http://gdata.youtube.com/
> feeds/api/videos/" + videoID);
>                 Video video = request.Retrieve<Video>(videoEntryUrl);
>                 request.Delete<Video>(video);
>
> Getting a null reference on the request.Delete line. Neither request
> nor video are null. I haven't downloaded debug binaries for this build
> to see what other variable could be null, but am wondering if
> something else could be doing on. (Yes, I'm the owner of this video.)
>
> FYI. I'm using build 1.9.0.0 of the Google Data API
>
> Thanks!
>
> Joe

--
You received this message because you are subscribed to the Google Groups "YouTube APIs Developer Forum" group.
To post to this group, send email to youtube-api-gdata@googlegroups.com.
To unsubscribe from this group, send email to youtube-api-gdata+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/youtube-api-gdata?hl=en.

No comments:

Post a Comment