Class

KoreaBasketball

KoreaBasketball()

Constructor

# new KoreaBasketball()

국내 농구 정보를 불러오는 클래스

Methods

# async getHistory(leagueType, date) → {Promise.<Information>}

주어진 날에 열린 해당 리그 경기를 가져온다

Parameters:
Name Type Description
leagueType KoreaBasketballLeague

찾고자 하는 리그

date Date

경기를 한 날짜

경기 결과를 배열 형태로 반환하는 Promise

Promise.<Information>
Example
const sh = new SportsHistory();
let data = await sh.koreaBasketball.getHistory("kbl", new Date("2020/02/20"));
console.log(data);

Type Definitions

string

# KoreaBasketballLeague

리그 이름
프로농구 kbl
여자 프로농구 wkbl