我在.NET MVC中使用了Google.Apis.Youtube.v3插件。从搜索结果中获取特定于用户的视频
var service = _youTubeService.GetYouTubeService;
var searchReq = service.Search.List("snippet");
searchReq.ChannelId = "exampleIdGoesHere"; // search this channel
searchReq.Q = "acoustic"; // search term
var model = new YouTubeViewModel {
Data = searchReq.Execute().Items
}
return View(model);
在我看来,我的目标是嵌入视频。但到目前为止,我能得到的唯一相关信息是搜索结果的标题和说明。这些物品,每个物品都是SearchResult
,并不完全是Video
- 我正在寻找。
有两个问题: - 如何检索仅来自特定用户的视频(使用.NET插件)? - 你如何获得视频信息,如URL,用于嵌入目的?
https://developers.google.com/youtube/2.0/developers_guide_protocol_api_query_parameters – 2014-11-05 17:59:09
@LB嗨!是的,我在API网站上已经有相当长的一段时间了,但我还没有找到让插件以我想要的方式工作的方式。这似乎不完整在这一点 – 2014-11-05 18:58:35