https://github.com/logicalclocks/decision-engine-client
Hopsworks Decision Engine Client
https://github.com/logicalclocks/decision-engine-client
Last synced: about 2 months ago
JSON representation
Hopsworks Decision Engine Client
- Host: GitHub
- URL: https://github.com/logicalclocks/decision-engine-client
- Owner: logicalclocks
- License: agpl-3.0
- Created: 2024-04-10T13:21:52.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-04-18T14:30:58.000Z (about 2 years ago)
- Last Synced: 2025-01-09T20:09:28.076Z (over 1 year ago)
- Language: TypeScript
- Size: 104 KB
- Stars: 0
- Watchers: 5
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# decisionEngineClient
client library for decision engine integration
# Installation
```sh
npm install decision-engine-client
```
# Usage
```ts
import { DecisionEngineClient } from "../src";
const client = new DecisionEngineClient({
apiKey: "your-api-key",
projectId: 1,
decisionEngineName: "Decision-engine-name",
serviceUrl: "http://localhost:8080/hopsworks-api/api/project",
});
...
client.handleProductClick({
id: "test-id",
event_type: "click",
event_value: 1,
});
```