如何为视频添加评论

时间:2014-03-28 10:36:45

标签: c# asp.net .net youtube-api

如何在youtube中为视频添加评论。以下是代码,但评论未发布。任何人都可以帮我解决我的代码出了什么问题。

YouTubeRequestSettings settings = new YouTubeRequestSettings("DynamicsMatrixDemo", ApiKey, Token);
YouTubeRequest request = new YouTubeRequest(settings);
Comment c = new Comment();
c.Content = "Test Comment";
Video newVideo = new Video();
newVideo.VideoId = "gdata.youtube.com/feeds/api/videos/xcrRhoYwgPo/comments"; ;
request.AddComment(newVideo, c);

0 个答案:

没有答案