Skip to content

Instantly share code, notes, and snippets.

@mpaccione
Created October 13, 2021 22:27
Show Gist options
  • Save mpaccione/80b84997f42c254fc99f7f9865261288 to your computer and use it in GitHub Desktop.
Save mpaccione/80b84997f42c254fc99f7f9865261288 to your computer and use it in GitHub Desktop.
Snippet
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