查询设备信息
POST
https://openapi-cn01.tange365.com/v2/device/info
/v2/device/info
请求参数
Header 参数
X-Tg-App-Id
string
必需
默认值:
{{app-id}}
Accept-Language
string
必需
默认值:
{{language}}
Authorization
string
必需
默认值:
{{access_token}}
X-Tg-Signed-Headers
string
必需
默认值:
x-tg-app-id;x-tg-date
示例值:
content-length;content-type;x-tg-app-id;x-tg-date
X-Tg-Date
string
必需
默认值:
20060102T150405Z
Body 参数application/json
device_id
string
必需
fields
array[string]
动态字段
枚举值:
product
示例
{
"device_id": "1702D8OCDC82",
"fields": [
"product"
]
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://openapi-cn01.tange365.com/v2/device/info' \
--header 'X-Tg-App-Id;' \
--header 'Accept-Language;' \
--header 'Authorization;' \
--header 'X-Tg-Signed-Headers;' \
--header 'X-Tg-Date;' \
--header 'Content-Type: application/json' \
--data-raw '{
"device_id": "1702D8OCDC82",
"fields": [
"product"
]
}'
返回响应
🟢200成功
application/json
Body
code
integer
必需
data
object
必需
device_type
string
设备类型
attrs_object
object
必需
attrs
string
属性
actived
string
激活状态
active_time
string
激活时间
firmware_id
string
固件类型
current_version
string
当前版本
sdk_lib_version
integer
必需
timezone
string
时区
ai_abilities
string
ai能力集
abilities
string
设备能力集
ext_attrs
string
开发者扩展属性
iccid
string
4G卡号
imei
string
必需
uuid
string
设备ID
msg
string
必需
ok
integer
必需
requestid
string
必需
status
string
必需
示例
{
"code": 200,
"data": {
"abilities": "{\"EventSet\":[[\"motion\",\"body\",\"sound\",\"doorbell\"],[]],\"Microphone\":\"TuneVol\",\"MultiChannels\":\"3-composed\",\"RecordConf\":\"Yes,res\",\"RotateVideo\":\"Yes\"}",
"active_time": "2024-03-29 09:56:55",
"actived": "2",
"ai_abilities": "{\"hw_ai\":[{\"flags\":3,\"type\":\"bd\"}],\"sw_ai\":[\"mt\"]}",
"attrs": "{\"category\":\"ipc\",\"network\":\"sim\",\"os\":\"linux\",\"protocol\":\"ppcs\"}",
"attrs_object": {
"category": "ipc",
"network": "sim",
"os": "linux",
"wakeup": "",
"power": "",
"protocol": "ppcs"
},
"connect_way": "sim",
"current_version": "49000001",
"device_type": "sim",
"ext_attrs": "{\"model\":\"cloudCam\"}",
"firmware_id": "aj_ipc_pip_001",
"iccid": "89860324402001856921",
"imei": "865324076579265",
"sdk_lib_version": 171,
"timezone": "GMT+08:00,Asia/Shanghai",
"uuid": "6333FTKP6DGF"
},
"msg": "ok",
"ok": 1,
"requestid": "c0b4c473-8505-468f-9cea-7fa5f7ec49de",
"status": "ok"
}
🟠400错误
🟠401请登录
🟠403禁止访问
🟠404资源不存在
🔴500服务器内部错误
修改于 2025-03-29 06:24:28