@betting-api/sbobet
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

Sbobet bookmaker odds api.

Api rest client for betting-api.com

Installation

yarn add @betting-api/sbobet

or

npm i -S @betting-api/sbobet

Then you can import it like:

import sbobet from '@betting-api/sbobet'
// or
const sbobet = require('@betting-api/sbobet').default

Authorization

To start using api, you need to create app at https://betting-api.com/console

Then:

sbobet.registerApp({
    secret_key: 'XXXXXXXXX',
})

Methods

const liveList = await sbobet.football.getLiveAll()
const liveSingleMatch = await sbobet.football.getLive(255860098)
const liveLeagues = await sbobet.football.getLiveLeagues()
const liveLeagueMatches = await sbobet.football.getLiveLeagueMatches(91)

const prematchList = await sbobet.football.getPreMatchAll()
const prematchSingle = await sbobet.football.getPreMatch(255860098)
const prematchLeagues = await sbobet.football.getPreMatchLeagues()
const prematchLeagueMatches = await sbobet.football.getPreMatchLeagueMatches(91)
 
const anyMatchSingle = await sbobet.football.getMatch(255860098)
const serverInfo = await sbobet.football.getInfo()

Typescript

Project have typescript support and you may find useful to use it.

Types:

  • SbobetFootballMatch - full match info

Readme

Keywords

none

Package Sidebar

Install

npm i @betting-api/sbobet

Weekly Downloads

2

Version

0.1.0

License

ISC

Unpacked Size

24.7 kB

Total Files

17

Last publish

Collaborators

  • betting-api