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 view this discussion on the web visit https://groups.google.com/d/msg/youtube-api-gdata/-/bWmot-W0hZcJ.
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