【发布时间】:2021-01-26 16:32:16
【问题描述】:
我想在调用youtubeService.Search.List("snippet");后获取列表中每个视频的时长
以下是我的代码
var youtubeService = new YouTubeService(new BaseClientService.Initializer()
{
ApiKey = "API Key",
ApplicationName = this.GetType().ToString()
});
var searchListRequest = youtubeService.Search.List("snippet");
searchListRequest.MaxResults = 30;
var searchListResponse = searchListRequest.Execute();
我读到持续时间在视频的内容详细信息中,但每个视频的内容详细信息为空。
【问题讨论】:
标签: c# asp.net-mvc google-api youtube-data-api google-api-dotnet-client