getStats()
Overview
public struct function getStats(
required string templateId
, string dateFrom
, string dateTo
, numeric timePoints = 1
, boolean uniqueOpens
, array stats
)
Collates various stat counts for the given template in the given timeframe for the given template.
Arguments
| Name | Type | Required | Description |
|---|---|---|---|
| templateId | string | Yes | ID of the template to get counts for |
| dateFrom | string | No | Optional date from which to count |
| dateTo | string | No | Optional date to which to count |
| timePoints | numeric | No (default=1) | Optional number of points to break out the stats over time (i.e. for use in graphing) |
| uniqueOpens | boolean | No | |
| stats | array | No |