juice-event-log
v1.0.12
Published
``` npm i juice-event-log ```
Downloads
16
Readme
install guide
npm i juice-event-log
demo
init and emit event log
const {EchoLog} = require('../dist/index');
const log = new EchoLog({
appId: "",
key: "",
api: "https://xxx.com"
});
log.$emit({
beforeEventId: '',
eventKey: "OPEN_AD",
userId: "xx",
eventVal: '',
}).then((val) => {
console.log("event id:",val);
}).catch((err) => {
});