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 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)