fansunited-sdk-umd 1.2.6 → 1.2.9
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 +14 -10
- package/index.js +1 -1
- package/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -20,6 +20,7 @@ The JavaScript SDK is distributed as NPM package. You can install it by running
|
|
|
20
20
|
|
|
21
21
|
```bash
|
|
22
22
|
npm i fansunited-sdk-umd
|
|
23
|
+
yarn add fansunited-sdk-umd
|
|
23
24
|
```
|
|
24
25
|
|
|
25
26
|
## Use the SDK in your app
|
|
@@ -35,16 +36,19 @@ in the config.
|
|
|
35
36
|
This is what the SDK config requires:
|
|
36
37
|
|
|
37
38
|
```javascript
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
39
|
+
<script src="path-to-node_modules/fansunited-sdk-umd/index.js"></script>
|
|
40
|
+
// If you want too use map file for better debugging.
|
|
41
|
+
<script src="path-to-node_modules/fansunited-sdk-umd/index.js.map"></script>
|
|
42
|
+
<script>
|
|
43
|
+
const sdk = FansUnitedSDK.FansUnitedSDK({
|
|
44
|
+
apiKey: 'your-api-key-here',
|
|
45
|
+
clientId: 'your-client-id-here',
|
|
46
|
+
idSchema: "native|enetpulse|sportradar|sportal365", // default: native
|
|
47
|
+
environment: "dev|prod|staging", // default: prod
|
|
48
|
+
lang: 'bg|en|ro', // default: EN
|
|
49
|
+
authProvider: new myTokenProvider()
|
|
50
|
+
});
|
|
51
|
+
</script>
|
|
48
52
|
```
|
|
49
53
|
|
|
50
54
|
The interface being exported by the Fans United SDK:
|