| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102 |
- using Microsoft.Net.Http.Headers;
- namespace economy.Models
- {
- // 공공데이터 API
- public class DataGoKR
- {
- public readonly HttpClient httpClient;
- public readonly string APIUrl = "http://apis.data.go.kr";
- public readonly string APIKey = "ee10c32875a7f8594ab0642a19e65eae38b2bc949b97089327b9466b6a5bc996";
- public DataGoKR(HttpClient e)
- {
- httpClient = e;
- httpClient.BaseAddress = new Uri(APIUrl);
- }
- }
- // 화훼공판장 API
- public class FlowerAtOrKR
- {
- public readonly HttpClient httpClient;
- public readonly string APIUrl = "https://flower.at.or.kr";
- public readonly string APIKey = "5F70416B443241BE846D0807744FC489";
- public FlowerAtOrKR(HttpClient e)
- {
- httpClient = e;
- httpClient.BaseAddress = new Uri(APIUrl);
- }
- }
- // 한국수출입은행 API
- public class KoreaEximGoKR
- {
- public readonly HttpClient httpClient;
- public readonly string APIUrl = "https://www.koreaexim.go.kr";
- public readonly string ExchangeAPIKey = "OiZlh6SjbXGBlfbagekBpi6kAE4UyonP"; // 환율
- public readonly string InterestAPIKey = "4olJNSqYHe4oVsW50JFXpXyYmDh9O9NN"; // 대출금리
- public readonly string InternationalAPIKey = "UI3DgPS3oZucxxCThkJQV6eAGprSbLJy"; // 국제금리
- public KoreaEximGoKR(HttpClient e)
- {
- httpClient = e;
- httpClient.BaseAddress = new Uri(APIUrl);
- }
- }
- // 동행복권
- public class DhlotteryCoKR
- {
- public readonly HttpClient httpClient;
- public readonly string APIUrl = "https://www.dhlottery.co.kr";
- public DhlotteryCoKR(HttpClient e)
- {
- httpClient = e;
- httpClient.BaseAddress = new Uri(APIUrl);
- }
- }
- // FIFA 순위
- public class FIFA_API
- {
- public readonly HttpClient httpClient;
- public readonly string APIUrl = "https://api.fifa.com";
- public FIFA_API(HttpClient e)
- {
- httpClient = e;
- httpClient.BaseAddress = new Uri(APIUrl);
- }
- }
- // 국세청 API
- public class NTS_API
- {
- public readonly HttpClient httpClient;
- public readonly string APIUrl = "http://api.odcloud.kr";
- public readonly string APIKey = "vQz8tIxrdhjerG6DE1w1hcVEli5S27LtIsCvx0axiieZmRgOpB4vToQ77VmvknAkIC9YjxlPx2gDZcl06S88Xw%3D%3D";
- public NTS_API(HttpClient e)
- {
- httpClient = e;
- httpClient.BaseAddress = new Uri(APIUrl);
- }
- }
- // Alphavantage API
- public class Alpha_API
- {
- public readonly HttpClient httpClient;
- public readonly string APIUrl = "https://www.alphavantage.co";
- public readonly string APIKey = "EFOBUHL5SFLBF2LN";
- public Alpha_API(HttpClient e)
- {
- httpClient = e;
- httpClient.BaseAddress = new Uri(APIUrl);
- }
- }
- }
|