Constructor
Methods
# async getHistory(leagueType, date) → {Promise.<Information>}
주어진 날에 열린 해당 리그 경기를 가져온다
Parameters:
| Name | Type | Description |
|---|---|---|
leagueType |
WorldSoccerLeague | 찾고자 하는 리그 |
date |
Date | 경기를 한 날짜 |
경기 결과를 배열 형태로 반환하는 Promise
Promise.<Information>
Example
const sh = new SportsHistory();
let data = await sh.worldSoccer.getHistory("epl", new Date("2020/02/20"));
console.log(data);
Type Definitions
string
# WorldSoccerLeague
| 리그 이름 | 값 |
|---|---|
| 프리미어리그 | epl |
| 라리가 | primera |
| 분데스 | bundesliga |
| 세리에 A | seria |
| 리그 1 | ligue1 |
| 챔피언스리그 | champs |
| 유로파리그 | europa |
| FA컵 | facup |
| EFL컵 | carlingcup |
| 코파델레이 | copadelrey |