Authorization: Bearer ********************
{
"deviceCode": "string",
"deviceName": "string",
"endTime": "2019-08-24T14:15:22Z",
"startTime": "2019-08-24T14:15:22Z"
}
curl --location --request POST 'http://ip:port/openApi/api/v1/open/consumptions/range' \
--header 'Content-Type: application/json' \
--data-raw '{
"deviceCode": "string",
"deviceName": "string",
"endTime": "2019-08-24T14:15:22Z",
"startTime": "2019-08-24T14:15:22Z"
}'
{
"code": "string",
"data": {
"batch": "string",
"consumption": 0,
"deviceCode": "string",
"deviceId": 0,
"deviceName": "string",
"endConsumption": 0,
"endTime": "2019-08-24T14:15:22Z",
"eui": "string",
"forecastElectricity": 0,
"gridName": "string",
"id": 0,
"recordDate": "2019-08-24T14:15:22Z",
"recordDateStr": "string",
"startConsumption": 0,
"startTime": "2019-08-24T14:15:22Z",
"time": "2019-08-24T14:15:22Z"
},
"message": "string",
"time": "2019-08-24T14:15:22Z"
}