Exemplo n.º 1
0
        /// <summary>
        /// NBA常规赛赛程赛果
        /// </summary>
        /// <returns></returns>
        public string GetCombat()
        {
            string url = "http://op.juhe.cn/onebox/basketball/nba";

            var parameters = new Dictionary <string, string>();

            return(SendResquestHelper.GetApiResult(appkey, url, parameters));
        }
Exemplo n.º 2
0
        /// <summary>
        /// 球队赛程查询
        /// </summary>
        /// <param name="TeamName">球队名称</param>
        /// <returns></returns>
        public string GetSchedule(string TeamName)
        {
            string url = "http://op.juhe.cn/onebox/football/team";

            var parameters = new Dictionary<string, string>();
            parameters.Add("team", TeamName); 

            return SendResquestHelper.GetApiResult(appkey, url, parameters);
        }
Exemplo n.º 3
0
        /// <summary>
        /// 足球联赛赛事查询
        /// </summary>
        /// <param name="LeagueName">联赛名称</param>
        /// <returns></returns>
        public string GetLeague(string LeagueName)
        {
            string url = "http://op.juhe.cn/onebox/football/league";

            var parameters = new Dictionary<string, string>();
            parameters.Add("league", LeagueName);

            return SendResquestHelper.GetApiResult(appkey, url, parameters);
        }
Exemplo n.º 4
0
        /// <summary>
        /// 球队对战赛赛程查询
        /// </summary>
        /// <param name="HTeamName">主队球队名称</param>
        /// <param name="VTeamName">客队球队名称</param>
        /// <returns></returns>
        public string GetCombat(string HTeamName, string VTeamName)
        {
            string url = "http://op.juhe.cn/onebox/football/combat";

            var parameters = new Dictionary<string, string>();
            parameters.Add("hteam", HTeamName);
            parameters.Add("vteam", VTeamName);

            return SendResquestHelper.GetApiResult(appkey, url, parameters);
        }
Exemplo n.º 5
0
        /// <summary>
        /// 最近影讯
        /// </summary>
        /// <param name="CityName">城市名称</param>
        /// <returns></returns>
        public string GetFilmNews(string CityName)
        {
            string url = "http://op.juhe.cn/onebox/movie/pmovie";

            var parameters = new Dictionary <string, string>();

            parameters.Add("city", CityName);

            return(SendResquestHelper.GetApiResult(appkey, url, parameters));
        }
Exemplo n.º 6
0
        /// <summary>
        /// 电影搜索
        /// </summary>
        /// <param name="MovieName">电影名称</param>
        /// <returns></returns>
        public string GetMovie(string MovieName)
        {
            string url = "http://op.juhe.cn/onebox/movie/video";

            var parameters = new Dictionary <string, string>();

            parameters.Add("q", MovieName);

            return(SendResquestHelper.GetApiResult(appkey, url, parameters));
        }