- things
- device
- auth
- auth5
- gateway
- info
- interact
- msg
- profile
- module
- schema
- edge
- group
- group
- ota
- product
- protocol
- rule
- schema
- slot
- user
批量请求设备获取设备最新属性
POST
/api/v1/things/device/interact/property-get-report-multi-send
things/device/interactthingsDeviceInteract
请求参数
Header 参数
Ithings-Project-Id
string
可选
默认值:
{{Ithings-Project-Id}}
Ithings-Token
string
可选
默认值:
{{iThings-token}}
app-code
string
可选
默认值:
{{appCode}}
device-id
string
可选
Body 参数application/json
dataIDs
array[string]
可选
productID
string
产品id
deviceNames
array[string]
设备名
devices
array[object (DeviceCore) {3}]
可选
productID
string
产品ID
productName
string
可选
deviceName
string
设备名称
areaID
string
控制一个区域的设备
areaIDPath
string
可选
groupID
string
控制一个组的设备
示例
{
"dataIDs": [
"string"
],
"productID": "string",
"deviceNames": [
"string"
],
"devices": [
{
"productID": "string",
"productName": "string",
"deviceName": "string"
}
],
"areaID": "string",
"areaIDPath": "string",
"groupID": "string"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/api/v1/things/device/interact/property-get-report-multi-send' \
--header 'Ithings-Project-Id: {{Ithings-Project-Id}}' \
--header 'Ithings-Token: {{iThings-token}}' \
--header 'app-code: {{appCode}}' \
--header 'device-id;' \
--header 'Content-Type: application/json' \
--data-raw ''
返回响应
🟢200成功
application/json
Body
code
integer
返回code
默认值:
200
msg
string
返回的消息
data
object (DeviceInteractPropertyGetReportMultiSendResp)
可选
list
array[object (DeviceInteractPropertyGetReportSendMsg) {9}]
必需
示例
{
"code": "200",
"msg": "string",
"data": {
"list": [
{
"code": 0,
"msg": "string",
"msgToken": "string",
"timestamp": 0,
"params": "string",
"productID": "string",
"deviceName": "string",
"sysCode": 0,
"sysMsg": "string"
}
]
}
}
修改于 2025-03-25 08:05:06