All URIs are relative to https://api.electricityinfo.co.nz/api/quantities/v1
Method | HTTP request | Description |
---|---|---|
energyGet | GET /energy | Retrieve a list of energy quantities across schedules |
schedulesGet | GET /schedules | Retrieve a list of schedules for which quantity data is currently available |
schedulesScheduleEnergyGet | GET /schedules/{schedule}/energy | Retrieve a list of energy quantities for the given schedule |
GetEnergyQuantitiesResponse energyGet(schedules, from, to, back, forward, island)
Retrieve a list of energy quantities across schedules
// Import classes:
//import sel.wits.client.infrastructure.*
//import sel.wits.client.models.*
val apiInstance = EnergyApi()
val schedules : kotlin.collections.List<kotlin.String> = // kotlin.collections.List<kotlin.String> |
val from : kotlin.String = from_example // kotlin.String | Optional trading date-time to filter historical data
val to : kotlin.String = to_example // kotlin.String | Optional trading date-time to filter historical data
val back : kotlin.Int = 56 // kotlin.Int | Optional trading period filter
val forward : kotlin.Int = 56 // kotlin.Int | Optional trading period filter
val island : Island = // Island | Return quantity data only for the selected island
try {
val result : GetEnergyQuantitiesResponse = apiInstance.energyGet(schedules, from, to, back, forward, island)
println(result)
} catch (e: ClientException) {
println("4xx response calling EnergyApi#energyGet")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling EnergyApi#energyGet")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
schedules | kotlin.collections.List<kotlin.String> | ||
from | kotlin.String | Optional trading date-time to filter historical data | [optional] |
to | kotlin.String | Optional trading date-time to filter historical data | [optional] |
back | kotlin.Int | Optional trading period filter | [optional] |
forward | kotlin.Int | Optional trading period filter | [optional] |
island | Island | Return quantity data only for the selected island | [optional] [enum: NI, SI] |
Configure oAuthClientCredentials: ApiClient.accessToken = ""
- Content-Type: Not defined
- Accept: application/json
ListSchedulesResponse schedulesGet()
Retrieve a list of schedules for which quantity data is currently available
// Import classes:
//import sel.wits.client.infrastructure.*
//import sel.wits.client.models.*
val apiInstance = EnergyApi()
try {
val result : ListSchedulesResponse = apiInstance.schedulesGet()
println(result)
} catch (e: ClientException) {
println("4xx response calling EnergyApi#schedulesGet")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling EnergyApi#schedulesGet")
e.printStackTrace()
}
This endpoint does not need any parameter.
Configure oAuthClientCredentials: ApiClient.accessToken = ""
- Content-Type: Not defined
- Accept: application/json
EnergyScheduleDetails schedulesScheduleEnergyGet(schedule, from, to, back, forward, island)
Retrieve a list of energy quantities for the given schedule
// Import classes:
//import sel.wits.client.infrastructure.*
//import sel.wits.client.models.*
val apiInstance = EnergyApi()
val schedule : kotlin.String = schedule_example // kotlin.String |
val from : kotlin.String = from_example // kotlin.String | Optional trading date-time to filter historical data
val to : kotlin.String = to_example // kotlin.String | Optional trading date-time to filter historical data
val back : kotlin.Int = 56 // kotlin.Int | Optional trading period filter
val forward : kotlin.Int = 56 // kotlin.Int | Optional trading period filter
val island : Island = // Island | Return quantity data only for the selected island
try {
val result : EnergyScheduleDetails = apiInstance.schedulesScheduleEnergyGet(schedule, from, to, back, forward, island)
println(result)
} catch (e: ClientException) {
println("4xx response calling EnergyApi#schedulesScheduleEnergyGet")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling EnergyApi#schedulesScheduleEnergyGet")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
schedule | kotlin.String | ||
from | kotlin.String | Optional trading date-time to filter historical data | [optional] |
to | kotlin.String | Optional trading date-time to filter historical data | [optional] |
back | kotlin.Int | Optional trading period filter | [optional] |
forward | kotlin.Int | Optional trading period filter | [optional] |
island | Island | Return quantity data only for the selected island | [optional] [enum: NI, SI] |
Configure oAuthClientCredentials: ApiClient.accessToken = ""
- Content-Type: Not defined
- Accept: application/json