예제 #1
0
        /// <summary>
        /// 백신 예방접종 현황
        /// </summary>
        /// <param name="vaccineType">all, sido</param>
        /// <returns></returns>
        public List <Vaccine> GetVaccine(VaccineType vaccineType)
        {
            RequestParams = new Dictionary <string, string>()
            {
                { "list", $"{vaccineType.ToString().ToLower()}" },
            };

            return(RequestAPI.APICaller <List <Vaccine> >(this, Method.GET));
        }
예제 #2
0
        /// <summary>
        /// 공공데이터활용지원센터_보건복지부 코로나19해외발생 현황
        /// </summary>
        /// <param name="start">데이터 생성일 시작범위</param>
        /// <param name="end">데이터 생성일 종료범위</param>
        /// <returns></returns>
        public List <InformationOfCovidOverseasJson> GetOverseasCovidState(string start, string end)
        {
            APIURL = new[] { "getCovid19NatInfStateJson" };

            RequestParams = new Dictionary <string, string>()
            {
                { "serviceKey", Option.Instance.APIKey },
                { "pageNo", "1" },
                { "numOfRows", "10" },
                { "startCreateDt", start },
                { "endCreateDt", end }
            };

            return(RequestAPI.APICaller <List <InformationOfCovidOverseasJson> >(this, Method.GET));
        }