-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathtest.js
34 lines (26 loc) · 883 Bytes
/
test.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
const { sportApi, sportData } = require('./index');
const betfair = new sportApi('betfair', { getCommonContents: false });
const bet365 = new sportApi('bet365', { getCommonContents: false });
const sport = new sportData('bet365', { getCommonContents: false });
//sport.bettingHouse()
// sport.allDefinitions('frame_data_id').then((all) => {
// console.log(all)
// })
// sport.modalData('1', 'categories').then((sport) => {
// console.log(sport)
// })
// sport.localData(1, 18, 'all').then((local) => {
// console.log(local)
// })
// sport.liague(66775).then((ligue) => {
// console.log(ligue)
// })
// sport.liagueSummary(66775).then((sumary) => {
// console.log(sumary)
// })
// sport.seasonGoals(66775).then((goals) => {
// console.log(goals)
// })
sport.getInfo('Europe:Berlin', 'stats_season_meta', 76415).then((data) => {
console.log(data)
})