This Choreo returns all the Intervals for a Time of Use Group within a given date range. The date range parameters are optional. If not specified, the FromDateTime defaults to the current date, and ToDateTime defaults to one week ahead. The documentation for this Genability resource can be found here.
Below is an example of acceptable inputs:
AppID: {YOUR API ID}
AppKey: {YOUR APP KEY}
LSEID: 2756
TOUGroupID: 1
The following is a sample of the JSON information returned by this Choreo:
{
"status": "success",
"count": 11,
"type": "TimeOfUseGroup",
"results": [
{
"touName": "Summer On-Peak",
"touGroupId": 1,
"fromDateTime": "2012-06-25T15:43:26-04:00",
"toDateTime": "2012-06-25T19:00:00-04:00",
"touId": 1,
"calendarId": null
},
{
"touName": "Summer Off-Peak",
"touGroupId": 1,
"fromDateTime": "2012-06-25T19:00:00-04:00",
"toDateTime": "2012-06-26T14:00:00-04:00",
"touId": 2,
"calendarId": null
},
{
"touName": "Summer On-Peak",
"touGroupId": 1,
"fromDateTime": "2012-06-26T14:00:00-04:00",
"toDateTime": "2012-06-26T19:00:00-04:00",
"touId": 1,
"calendarId": null
},
{
"touName": "Summer Off-Peak",
"touGroupId": 1,
"fromDateTime": "2012-06-26T19:00:00-04:00",
"toDateTime": "2012-06-27T14:00:00-04:00",
"touId": 2,
"calendarId": null
},
{
"touName": "Summer On-Peak",
"touGroupId": 1,
"fromDateTime": "2012-06-27T14:00:00-04:00",
"toDateTime": "2012-06-27T19:00:00-04:00",
"touId": 1,
"calendarId": null
},
{
"touName": "Summer Off-Peak",
"touGroupId": 1,
"fromDateTime": "2012-06-27T19:00:00-04:00",
"toDateTime": "2012-06-28T14:00:00-04:00",
"touId": 2,
"calendarId": null
},
{
"touName": "Summer On-Peak",
"touGroupId": 1,
"fromDateTime": "2012-06-28T14:00:00-04:00",
"toDateTime": "2012-06-28T19:00:00-04:00",
"touId": 1,
"calendarId": null
},
{
"touName": "Summer Off-Peak",
"touGroupId": 1,
"fromDateTime": "2012-06-28T19:00:00-04:00",
"toDateTime": "2012-06-29T14:00:00-04:00",
"touId": 2,
"calendarId": null
},
{
"touName": "Summer On-Peak",
"touGroupId": 1,
"fromDateTime": "2012-06-29T14:00:00-04:00",
"toDateTime": "2012-06-29T19:00:00-04:00",
"touId": 1,
"calendarId": null
},
{
"touName": "Summer Off-Peak",
"touGroupId": 1,
"fromDateTime": "2012-06-29T19:00:00-04:00",
"toDateTime": "2012-07-02T14:00:00-04:00",
"touId": 2,
"calendarId": null
},
{
"touName": "Summer On-Peak",
"touGroupId": 1,
"fromDateTime": "2012-07-02T14:00:00-04:00",
"toDateTime": "2012-07-02T15:43:26-04:00",
"touId": 1,
"calendarId": null
}
]
}