@betting-api/all
v0.1.0
Published
Multiple bookmakers odds api.
Downloads
6
Readme
Multiple bookmakers odds api.
Api rest client for betting-api.com
Installation
yarn add @betting-api/all
or
npm i @betting-api/all -S
Then you can import it like:
import bettingApi from '@betting-api/all'
// or
const bettingApi = require('@betting-api/all').default
Authorization
To start using api, you need to create app at https://betting-api.com/console
Then authorize all your clients by command:
bettingApi.registerApp({
secret_key: 'XXXXXXXXX',
})
Methods
const fonbetMatch = await bettingApi.fonbet.football.getLive('id')
const xBetMatch = await bettingApi.xbet.football.getLive('id')
const betwayMatch = await bettingApi.betway.football.getLive('id')
List of bookmakers and apis you can check here