themeparks-api
v1.0.1
Published
根据 [Themeparks](https://github.com/cubehouse/themeparks) 封装的乐园等候时间查询 Api
Readme
Themeparks Api
根据 Themeparks 封装的乐园等候时间查询 Api
主要特性:
- TypeScript
- 按地区读取,查询更便捷
- 增加乐园缩写代码,更利于存储
- 统一的游乐设施标识
乐园地区代码:
| 位置 | 代码 | | :--------------- | :---- | | 加州迪士尼 | cadp | | 奥兰多迪士尼世界 | fldw | | 香港迪士尼 | hkdl | | 上海迪士尼 | shdr | | 东京迪士尼 | tkydl |
开始
npm i themeparks-Api
import * as ThemeParksApi from 'themeparks-api'
// 获取等候时间
ThemeParksApi[LocationCode].getWaitTimes()
// 获取时间表
ThemeParksApi[LocationCode].getSchedules()
// 获取今日时间表
ThemeParksApi[LocationCode].getTodaySchedules()