bb-api-platforma
v0.1.238
Published
API module for BetBooster Platform
Maintainers
Readme
BetBooster API Platform
Module package for working with API of BetBooster platform.
Installation
To install the "bb-api-platforma" package, run the following command:
npm install bb-api-platformaUsage
import axios from 'axios'
import { BetBoosterApi } from 'bb-api-platforma';
const axiosInstance = axios.create();
const apiRootUrl = 'https://api.example.com';
const defaultLanguage = 'en';
const maxTimeout = 15000;
const isDevelopmentMode = !!process.env.DEV;
const api = new BetBoosterApi(axiosInstance, apiRootUrl, defaultLanguage, maxTimeout, isDevelopmentMode);
const res = await api2.login({ login: 'login', password: 'password' });
console.log(res);
// ...
Documentation
The documentation for the bb-api-platforma API can be found at the following link: https://betseller.gitlab.io/bb-api-platforma
