コード例 #1
0
        /// <summary>
        /// Lấy chi tiết
        /// Hash: Stats/Bets/[IP]/[TID]/[KEY]/[DATE]/[PWD]
        /// </summary>
        /// <param name="Date"></param>
        /// <param name="TID"></param>
        /// <param name="system"></param>
        /// <param name="AffiliateID"></param>
        /// <returns></returns>
        public async System.Threading.Tasks.Task <string> ApiStatsDetailyFullList(string Date, string TID, string system, string AffiliateID)
        {
            string strMdD5 = hashMD5.Hash_HashDetailStatssAuth(TID, Date);

            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 = (await client.PostAsync("System/Api/" + API_KEY + "/Stats/Detailed/?Date=" + Date + "&TID=" + TID + "&Hash=" + strMdD5 + "&System=" + system + "&AffiliateID=" + AffiliateID, null));
                if (response.IsSuccessStatusCode)
                {
                    return(response.Content.ReadAsStringAsync().Result);
                }
                return(null);
            }
        }