Could you try retrieving the video entry from your uploads feed
instead? The code would be
var video = youtubeRequest.Retrieve<Video>(new
Uri(string.Format("http://gdata.youtube.com/feeds/api/users/default/
uploads/{0}", videoid)));
Cheers,
-Jeff Posnick, YouTube API Team
groups.google.com/group/youtube-api-gdata | apiblog.youtube.com |
@YouTubeDev
On Jan 11, 5:37 am, A A <default4data...@gmail.com> wrote:
> Hello,
>
> I am using the .NET DataAPI.
>
> I can successfully authenticate with the YouTube API, however, when I
> attempt to update a video in my channel I can see that the ReadOnly
> property of all the videos is set to true, meaning that all update requests
> fail... any clues as to what I am doing wrong? (credentials removed, but
> they are correct in my IDE).
>
> const string channel = "xx";
> const string password = "yy";
>
> const string videoid = "vv";
>
> var youtubeRequestSettings = new YouTubeRequestSettings("aa","bb", channel, password);
>
> var youtubeRequest = new YouTubeRequest(youtubeRequestSettings);
>
> var video = youtubeRequest.Retrieve<Video>(new Uri(string.Format("http://gdata.youtube.com/feeds/api/videos/{0}", videoid)));
>
> video.Title = "My New Title";
>
> var updatedVideo = youtubeRequest.Update(video);
--
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