| 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 = "13c11eacff586886b241a2d0b1b792bd09981f1a56e3661e3e838528e4c05db0";
- 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 = "DB62A9CDE871406F8955034813B812EC";
- 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 = "13c11eacff586886b241a2d0b1b792bd09981f1a56e3661e3e838528e4c05db0";
- 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);
- }
- }
- }
|