@recomnext/node 0.3.4-dev.94b8290b → 0.5.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 +2 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -30,6 +30,7 @@ const client = new RecomnextClient({
|
|
|
30
30
|
const { items } = await client.recommendations.userToItem('user-123', {
|
|
31
31
|
count: 10,
|
|
32
32
|
scenario: 'home-for-you',
|
|
33
|
+
country: 'IN', // optional ISO-2; omit for global ranking
|
|
33
34
|
});
|
|
34
35
|
|
|
35
36
|
// Ingest items
|
|
@@ -39,7 +40,7 @@ await client.ingestion.upsertItems([
|
|
|
39
40
|
|
|
40
41
|
// Log interactions
|
|
41
42
|
await client.ingestion.logInteractions([
|
|
42
|
-
{ userId: 'user-123', itemId: 'prod-1', type: 'view' },
|
|
43
|
+
{ userId: 'user-123', itemId: 'prod-1', type: 'view', country: 'IN' },
|
|
43
44
|
]);
|
|
44
45
|
|
|
45
46
|
// Log impressions
|