How to use RestSharp with Ambari Swagger
问题 How do I connect to Ambari's Swagger interface with a RestSharp client ? This code works and returns expected json: HttpClientHandler handler = new HttpClientHandler { Credentials = new System.Net.NetworkCredential("xxx", "yyyyy") }; using (var httpClient = new HttpClient(handler)) { var activationUrl = "https://aaaa.azurehdinsight.net"; var uri = new Uri(activationUrl + "/api/v1/users"); var response = await httpClient.GetAsync(uri); Assert.IsTrue(response.IsSuccessStatusCode); var result =