- discard(废弃)
- demo(模板-参考示例)
- usmile-wx(微信)
- uc(用户统一中心)
- user-web(健康&设备&我的)
- bff-cloud
- iot-sevice(IOT平台)
- cloud-admin(运营后台)
详情查询设备详情
GET
/iot/device/{id}
请求参数
Path 参数
id
integer
必需
示例值:
15230
Query 参数
id
integer
可选
示例值:
15230
Header 参数
TOK
string
可选
默认值:
{{token}}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET '/iot/device/15230?id=15230' \
--header 'TOK: '
返回响应
🟢200成功
application/json
Body
code
integer
必需
message
string
必需
data
object
必需
id
integer
必需
deviceId
string
必需
productKey
string
必需
deviceKey
string
必需
status
integer
必需
isDisabled
integer
必需
remark
string
必需
activeTime
null
必需
lastOnlineTime
null
必需
lastOfflineTime
null
必需
createTime
integer
必需
updateTime
integer
必需
示例
{
"code": 0,
"message": "string",
"data": {
"id": 0,
"deviceId": "string",
"productKey": "string",
"deviceKey": "string",
"status": 0,
"isDisabled": 0,
"remark": "string",
"activeTime": null,
"lastOnlineTime": null,
"lastOfflineTime": null,
"createTime": 0,
"updateTime": 0
}
}
修改于 2025-02-05 09:36:20