@yassirbenmoussa/aicommerce-sdk 1.6.0 → 1.7.0
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 +5 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -30,6 +30,7 @@ import { AICommerce } from '@yassirbenmoussa/aicommerce-sdk';
|
|
|
30
30
|
// Initialize the client
|
|
31
31
|
const client = new AICommerce({
|
|
32
32
|
apiKey: 'your-api-key',
|
|
33
|
+
storeId: 'your-store-id',
|
|
33
34
|
});
|
|
34
35
|
|
|
35
36
|
// Send a message and get product recommendations
|
|
@@ -46,6 +47,7 @@ const { AICommerce } = require('@yassirbenmoussa/aicommerce-sdk');
|
|
|
46
47
|
|
|
47
48
|
const client = new AICommerce({
|
|
48
49
|
apiKey: 'your-api-key',
|
|
50
|
+
storeId: 'your-store-id',
|
|
49
51
|
});
|
|
50
52
|
|
|
51
53
|
client.chat('I need a laptop').then(response => {
|
|
@@ -59,7 +61,8 @@ client.chat('I need a laptop').then(response => {
|
|
|
59
61
|
<script src="https://cdn.aicommerce.dev/sdk/ai-commerce.min.js"></script>
|
|
60
62
|
<script>
|
|
61
63
|
const client = new AICommerceSDK.AICommerce({
|
|
62
|
-
apiKey: 'your-api-key'
|
|
64
|
+
apiKey: 'your-api-key',
|
|
65
|
+
storeId: 'your-store-id'
|
|
63
66
|
});
|
|
64
67
|
|
|
65
68
|
client.chat('I need a laptop').then(response => {
|
|
@@ -77,6 +80,7 @@ Create a new AI Commerce client.
|
|
|
77
80
|
| Option | Type | Required | Description |
|
|
78
81
|
|--------|------|----------|-------------|
|
|
79
82
|
| `apiKey` | `string` | Yes | Your API key from the dashboard |
|
|
83
|
+
| `storeId` | `string` | Yes | Your Store ID from the dashboard |
|
|
80
84
|
| `baseUrl` | `string` | No | API base URL (defaults to auto-detect) |
|
|
81
85
|
| `timeout` | `number` | No | Request timeout in ms (default: 30000) |
|
|
82
86
|
|