Skip to content

Instantly share code, notes, and snippets.

@aroc
Created September 15, 2015 16:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aroc/a75f627f239b9ee55f03 to your computer and use it in GitHub Desktop.
Save aroc/a75f627f239b9ee55f03 to your computer and use it in GitHub Desktop.
var client = new Keen({
projectId: {PROJECT_ID},
readKey: {READ_KEY}
});
Keen.ready(function(){
var query = new Keen.Query("extraction", {
eventCollection: "CourtesyHoldFunnel",
email: {YOUR_EMAIL}, // Put the email that you want the data extraction sent to here.
timeframe: {"end":"2015-09-15T09:15:00.000+00:00","start":"2015-09-11T09:15:00.000+00:00"}
});
client.run(query, function(err, res), {
if (err) {
console.log("There was an error: ", err);
} else {
console.log("The query was made successfully. Response is: ", res);
}
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment