- makeClient(credentials, options?): {
stats: {
aggregate: ((...args: [options?: AggregateOptions]) => Promise<{
bounce_rate: {
value: number;
};
pageviews: {
value: number;
};
visit_duration: {
value: number;
};
visitors: {
value: number;
};
}>);
breakdown: ((...args: [options?: BreakdownOptions]) => Promise<BreakdownResult[]>);
timeseries: ((...args: [options?: TimeseriesOptions]) => Promise<TimeseriesResult[]>);
};
} Returns {
stats: {
aggregate: ((...args: [options?: AggregateOptions]) => Promise<{
bounce_rate: {
value: number;
};
pageviews: {
value: number;
};
visit_duration: {
value: number;
};
visitors: {
value: number;
};
}>);
breakdown: ((...args: [options?: BreakdownOptions]) => Promise<BreakdownResult[]>);
timeseries: ((...args: [options?: TimeseriesOptions]) => Promise<TimeseriesResult[]>);
};
}
stats: {
aggregate: ((...args: [options?: AggregateOptions]) => Promise<{
bounce_rate: {
value: number;
};
pageviews: {
value: number;
};
visit_duration: {
value: number;
};
visitors: {
value: number;
};
}>);
breakdown: ((...args: [options?: BreakdownOptions]) => Promise<BreakdownResult[]>);
timeseries: ((...args: [options?: TimeseriesOptions]) => Promise<TimeseriesResult[]>);
}
aggregate: ((...args: [options?: AggregateOptions]) => Promise<{
bounce_rate: {
value: number;
};
pageviews: {
value: number;
};
visit_duration: {
value: number;
};
visitors: {
value: number;
};
}>)
- (...args): Promise<{
bounce_rate: {
value: number;
};
pageviews: {
value: number;
};
visit_duration: {
value: number;
};
visitors: {
value: number;
};
}> Returns Promise<{
bounce_rate: {
value: number;
};
pageviews: {
value: number;
};
visit_duration: {
value: number;
};
visitors: {
value: number;
};
}>