C# youtube api从显示名获取用户名

C# youtube api从显示名获取用户名,c#,asp.net,C#,Asp.net,我有youtube上的显示名。如何获取用户名 我的代码如下:- public static YouTubeVideoObject[] GetVideos(string User) { YouTubeRequestSettings settings = new YouTubeRequestSettings(User, YOUTUBE_DEVELOPER_KEY); YouTubeRequest request = new

我有youtube上的显示名。如何获取用户名

我的代码如下:-

 public static YouTubeVideoObject[] GetVideos(string User)
   {

           YouTubeRequestSettings settings =
           new YouTubeRequestSettings(User, YOUTUBE_DEVELOPER_KEY);
           YouTubeRequest request = new YouTubeRequest(settings);
           User = User.Replace(" ", "%20");
           string feedUrl = "http://gdata.youtube.com/feeds/api/videos?q=" + User + "&orderby=published";

           Feed<Video> videoFeed = request.Get<Video>(new Uri(feedUrl));
           return (from video in videoFeed.Entries
                   select new YouTubeVideoObject() { VideoId = video.VideoId, Title = video.Title, Description = video.Description }).ToArray();

   }
public static YouTubeVideoObject[]GetVideos(字符串用户)
{
YouTube请求设置=
新的YOUTUBE请求设置(用户、YOUTUBE开发者密钥);
YouTuberRequest请求=新建YouTuberRequest(设置);
User=User.Replace(“,“%20”);
字符串feedUrl=”http://gdata.youtube.com/feeds/api/videos?q=“+User+”&orderby=published”;
Feed videoFeed=request.Get(新Uri(feedUrl));
返回(来自videoFeed.Entries中的视频)
选择new YouTubeVideoObject(){VideoId=video.VideoId,Title=video.Title,Description=video.Description}).ToArray();
}

提前感谢。

如果多个用户具有相同的显示名称怎么办?@Alex显示所有相关视频