public string ApiAuthorization_with_HTML(string login, string TID, string pass, string page, string userIP, string system) { string strMdD5 = hashMD5.HashAuthorization_with_HTML(login, TID, pass, system); using (var client = new HttpClient()) { client.BaseAddress = new Uri(URL_API_FUNDIST); client.DefaultRequestHeaders.Accept.Clear(); client.DefaultRequestHeaders.TryAddWithoutValidation("Content-Type", "application/json"); HttpResponseMessage response = client.GetAsync("System/Api/" + API_KEY + "/User/AuthHTML/?&Login="******"&Password="******"&System=" + system + "&TID=" + TID + "&Hash=" + strMdD5 + "&Page=" + page + "&UserIP=" + userIP).Result; if (response.IsSuccessStatusCode) { return(response.Content.ReadAsStringAsync().Result); } return(null); } }