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 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
- import {FansUnitedSDK} from "fansunited-sdk-esm";
39
-
40
- let fansUnitedSdk = FansUnitedSDK({
41
- "apiKey": "your-api-key-here",
42
- "environment": "dev|prod|staging", // default: prod
43
- "clientId": "your-client-id-here",
44
- "lang": "BG|EN|RO", // default: EN
45
- "idSchema": "native|enetpulse|sportradar|sportal365", // default: native
46
- "authProvider": new myTokenProvider()
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: