/// <summary> /// /// </summary> /// <param name="login"></param> /// <param name="amount">số lượng transaction</param> /// <param name="TID"></param> /// <param name="type">có 2 type: Deposit/Widthdraw</param> /// <param name="system">có 2 system: EVO/EZUI</param> /// <returns></returns> public string ApiSetBalance_Transfer(string login, string amount, string TID, string type, string system) { string strMdD5 = hashMD5.Hash_SetBalanceUser(login, TID, amount, 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 + "/Balance/Set/?&Login="******"&System=" + system + "&Amount=" + amount + "&TID=" + TID + "&Currency=" + CURRENCY + "&Hash=" + strMdD5 + "&Type=" + type).Result;//có thể option reason if (response.IsSuccessStatusCode) { return(response.Content.ReadAsStringAsync().Result); } return(null); } }