bb-api-platforma 0.1.168
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +44 -0
- package/dist/BetBoosterApi.d.ts +1148 -0
- package/dist/BetBoosterApi.js +2428 -0
- package/dist/BetBoosterApi.min.d.ts +1777 -0
- package/dist/BetBoosterApi.min.js +2 -0
- package/dist/BetBoosterApi.min.js.map +1 -0
- package/dist/BetBoosterOfficeApi.d.ts +941 -0
- package/dist/BetBoosterOfficeApi.js +1879 -0
- package/dist/BetBoosterOfficeApi.test.d.ts +1 -0
- package/dist/BetBoosterOfficeApi.test.js +24 -0
- package/dist/Types.d.ts +1742 -0
- package/dist/Types.js +896 -0
- package/dist/coupon.d.ts +139 -0
- package/dist/coupon.js +491 -0
- package/dist/version.d.ts +1 -0
- package/dist/version.js +14 -0
- package/package.json +57 -0
package/README.md
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# BetBooster API Platform
|
|
2
|
+
|
|
3
|
+
Module package for working with API of BetBooster platform.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
To install the "bb-api-platforma" package, run the following command:
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm install gitlab:betseller/bb-api-platforma
|
|
11
|
+
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
It is possible to use the command to update the package:
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
npm install bb-api-platforma
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## Usage
|
|
21
|
+
|
|
22
|
+
```javascript
|
|
23
|
+
|
|
24
|
+
import axios from 'axios'
|
|
25
|
+
import { BetBoosterApi } from 'bb-api-platforma';
|
|
26
|
+
|
|
27
|
+
const axiosInstance = axios.create();
|
|
28
|
+
const apiRootUrl = 'https://api.example.com';
|
|
29
|
+
const defaultLanguage = 'en';
|
|
30
|
+
const maxTimeout = 15000;
|
|
31
|
+
const isDevelopmentMode = !!process.env.DEV;
|
|
32
|
+
const api = new BetBoosterApi(axiosInstance, apiRootUrl, defaultLanguage, maxTimeout, isDevelopmentMode);
|
|
33
|
+
|
|
34
|
+
const res = await api2.login({ login: 'login', password: 'password' });
|
|
35
|
+
|
|
36
|
+
console.log(res);
|
|
37
|
+
|
|
38
|
+
// ...
|
|
39
|
+
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## Documentation
|
|
43
|
+
|
|
44
|
+
The documentation for the `bb-api-platforma` API can be found at the following link: [https://betseller.gitlab.io/bb-api-platforma](https://betseller.gitlab.io/bb-api-platforma)
|