TotalByInterval.Retrieve
Overview
Returns tracking data related to an initialized triggered send specified by type, duration, and intervalSyntax
TotalByInterval.Retrieve(1, 2, 3, 4)
| Ordinal | Type | Description | |
|---|---|---|---|
| 1 | string | Required | Type of data to aggregate and return. Valid values include Send, Open, CLick, Bounce, and Unsubscribe. |
| 2 | datetime | Required | Start date for data period |
| 3 | datetime | Required | End date for data period |
| 4 | string | Required | Interval used to aggregate data. Valid values include day and hour. |
Example
This sample code returns a month's worth of click data for the initialized triggered send aggregated by day:
var tsd = TriggeredSend.Init("MyTSDKey");
var results = tsd.Tracking.TotalByInterval.Retrieve('Click', '07-01-2010', '07-31-2010', 'day');