@simpoobusiness/sdk 2.0.75 → 2.0.77
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 +9 -2
- package/dist/.tsbuildinfo +1 -1
- package/dist/api/client.d.ts +6 -1
- package/dist/context/SimpooProvider.d.ts +4 -0
- package/dist/embed.d.ts +2 -0
- package/dist/simpoo-sdk.css +1 -1
- package/dist/simpoo-sdk.js +39 -39
- package/dist/simpoo-sdk.js.map +1 -1
- package/package.json +13 -13
package/README.md
CHANGED
|
@@ -26,7 +26,10 @@ Preferrably before the the closing tag `</body> of the page`
|
|
|
26
26
|
|
|
27
27
|
```html
|
|
28
28
|
<script>
|
|
29
|
-
SimpooSDK.init({
|
|
29
|
+
SimpooSDK.init({
|
|
30
|
+
apiKey: "YOUR_API_KEY",
|
|
31
|
+
env: "prod" // optional: 'dev' or 'prod' (defaults to 'dev')
|
|
32
|
+
});
|
|
30
33
|
SimpooSDK.renderWidget("inventory", "#inventory-widget");
|
|
31
34
|
</script>
|
|
32
35
|
```
|
|
@@ -51,11 +54,15 @@ Initialize the SDK with your configuration.
|
|
|
51
54
|
**Parameters:**
|
|
52
55
|
|
|
53
56
|
- `config.apiKey` (string) – Your API key.
|
|
57
|
+
- `config.env` (string, optional) – The environment to use. Can be `'dev'` or `'prod'`. Defaults to `'dev'`.
|
|
54
58
|
|
|
55
59
|
**Example:**
|
|
56
60
|
|
|
57
61
|
```js
|
|
58
|
-
SimpooSDK.init({
|
|
62
|
+
SimpooSDK.init({
|
|
63
|
+
apiKey: "12345",
|
|
64
|
+
env: "prod"
|
|
65
|
+
});
|
|
59
66
|
```
|
|
60
67
|
|
|
61
68
|
---
|