Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/319.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 从YouTube视频获取评论和回复_C#_Youtube - Fatal编程技术网

C# 从YouTube视频获取评论和回复

C# 从YouTube视频获取评论和回复,c#,youtube,C#,Youtube,我想从任何YouTube视频中获得列表中的第一条评论和回复。请任何人都能告诉我实现它的确切方法。谢谢 我尝试了YouTube API,但它只能给出评论,而不能回复评论 YouTubeRequestSettings settings = new YouTubeRequestSettings("applicationName", "developerKey", "userName", "passWord"); YouTubeRequest request = new YouTubeRequest(s

我想从任何YouTube视频中获得列表中的第一条评论和回复。请任何人都能告诉我实现它的确切方法。谢谢

我尝试了YouTube API,但它只能给出评论,而不能回复评论

YouTubeRequestSettings settings = new YouTubeRequestSettings("applicationName", "developerKey", "userName", "passWord");
YouTubeRequest request = new YouTubeRequest(settings);
Uri videoEntryUrl = new Uri("http://gdata.youtube.com/feeds/api/videos/" + videoId);
Video video = request.Retrieve<Video>(videoEntryUrl);
var comments = request.GetComments(video);
YouTubeRequestSettings=新的YouTubeRequestSettings(“应用程序名”、“developerKey”、“用户名”、“密码”);
YouTuberRequest请求=新建YouTuberRequest(设置);
Uri videoEntryUrl=新Uri(“http://gdata.youtube.com/feeds/api/videos/“+videoId);
视频=请求.检索(videoEntryUrl);
var comments=request.GetComments(视频);

这不是一个好的提问方式。到目前为止,你有没有尝试过解决你的问题?先表现出你的努力,这样人们才能表现出他们的努力。请阅读,并添加我的代码,我一直尝试到现在