Created
September 15, 2015 16:47
-
-
Save aroc/a75f627f239b9ee55f03 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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