0.1.0 • Published 5 years ago

@betting-api/all v0.1.0

Weekly downloads
2
License
ISC
Repository
github
Last release
5 years ago

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