物联能耗数据查询
GET
https://api2.hik-cloud.com/api/v1/edu/basic/devices/actions/getDeviceConsumptionData
功能描述
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api2.hik-cloud.com/api/v1/edu/basic/devices/actions/getDeviceConsumptionData?consumptionType&deviceSerial&startDate&endDate' \
--header 'Authorization: Bearer '
响应示例响应示例
{
"code": 200,
"message": "操作成功",
"data": {
"consumption": "10"
}
}
请求参数
Query 参数
consumptionType
string
必需
deviceSerial
string
必需
startDate
string
必需
endDate
string
必需
schoolId
string
学校ID
Header 参数
Authorization
string
可选
默认值:
Bearer {{access_token}}