public YoutubeVideo[] YoutubeVideos()
{
string YOUTUBE_CHANNEL = ConfigurationManager.AppSettings["YoutubeChannel"];
string YOUTUBE_DEVELOPER_KEY = ConfigurationManager.AppSettings["YoutubeDeveloperKey"];
Google.YouTube.YouTubeRequestSettings settings = new Google.YouTube.YouTubeRequestSettings(YOUTUBE_CHANNEL, YOUTUBE_DEVELOPER_KEY);
Google.YouTube.YouTubeRequest request = new Google.YouTube.YouTubeRequest(settings);
//TODO: ORDERBY NEEDS TO BE REPLACED WITH ORDER, URL needs updating?
Google.GData.Client.Feed<Google.YouTube.Video> videoFeed = request.Get<Google.YouTube.Video>(new Uri(feedUrl));
return (from video in videoFeed.Entries
select new YoutubeVideo()
{
VideoId = video.VideoId,
Title = video.Title,
Description = video.Description,
Uploaded = Convert.ToString(video.Updated.ToShortDateString())
}).ToArray();
}