如何使用C#Asp.net从我自己的YouTube频道中检索订阅者列表?

时间:2018-09-10 18:31:58

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

我希望修改此代码以检索订户名称或ID

YouTubeService yt = new YouTubeService(new BaseClientService.Initializer() {     ApiKey = "MY API KEY" });
var searchListRequest = yt.Search.List("snippet");
searchListRequest.ChannelId = "MY CHANNEL ID";
var searchListResult = searchListRequest.Execute();
foreach (var item in searchListResult.Items)
{
         //retrive each subscribers name or id  
}

0 个答案:

没有答案