Created
October 13, 2021 22:27
-
-
Save mpaccione/80b84997f42c254fc99f7f9865261288 to your computer and use it in GitHub Desktop.
Snippet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Keen = new KeenAnalysis({ | |
projectId: config.getString('keen.libraryClient.projectId'), | |
masterKey: config.getString('keen.masterKey') | |
}) | |
... | |
const keenURL = { | |
url: Keen.url('events'), | |
api_key: Keen.masterKey(), | |
filters: encodeURIComponent(JSON.stringify([{ | |
propertyName: 'user.id', | |
operater: 'eq', | |
propertyValue: user_id | |
}])) | |
} | |
await Keen.del(keenURL); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment