示例#1
0
        public async Task <IList <GitHubBlogEntry> > GetEntries()
        {
            //var response = httpClient.GetStringAsync("https://api.github.com/repos/bmccoy04/CoreBlogger/contents/BlogEntries/");
            //var response = httpClient.GetStringAsync("https://api.github.com/repos/bmccoy04/CoreBlogger/contents/BlogEntries/Test!.md");
            //var response = httpClient.GetStringAsync("https://raw.githubusercontent.com/bmccoy04/CoreBlogger/master/BlogEntries/Test!.md");



            //var content = await _httpClient.GetStringAsync(_url);
            //var items = JsonConvert.DeserializeObject<List<GitHubEntry>>(content);
            var items = await _gitHubClient.GetEntriesAsync <List <GitHubBlogEntry> >();

            return(items);
        }