Ejemplo n.º 1
0
        public static async Task Main(string[] args)
        {
            IGitHubApi gitHubApi = RestClient.For <IGitHubApi>("https://api.github.com", new JsonRestSettings()
            {
                HttpMessageHandlerFactory = () => new DelegatingLoggingHandler(new HttpClientHandler())
            });

            User user = await gitHubApi.GetUserAsync("lestar");

            Console.WriteLine($"Login: {user.Login}, Url:{user.Url}");

            SearchResult <User> results = await gitHubApi.FindUsersAsync("tom+repos:<42+followers:<1000");

            Console.Read();
        }