Releases: keen/keen-analysis.js
Releases · keen/keen-analysis.js
v3.7.0
v3.6.0
v3.5.0
v3.4.6
v3.4.5
Fixes:
- handle DELETE requests with filters, timeframes eg. https://keen.io/docs/api/?javascript#delete-events
v3.4.4
v3.4.3
v3.4.1
Fixes:
- Query result values inconsistent keen/keen-dataviz.js#184 (reported by @jaredgalanis)
v3.4.0
v3.3.0
Parsing query results #43
resultParsers
is an array of functions and the response from API will be parsed by each function.
import KeenAnalysis from 'keen-analysis';
const client = new KeenAnalysis({
projectId: 'YOUR_PROJECT_ID',
readKey: 'YOUR_READ_KEY',
resultParsers: [
(value) => {
return Math.round(value);
}
]
});
client.query({
analysis_type: 'count',
event_collection: 'pageviews',
timeframe: 'this_3_months'
})
.then(res => {
// Handle results
})
.catch(err => {
// Handle errors
});