来源文档:小鹰开放平台设备管理文档v1.1.14.html
请求方式:POST
请求地址:
正式:https://open.eye4cloud.com/{{open_id}}/open/v1/device/create
| 字段名 | 是否必传 | 类型 | 备注 |
|---|---|---|---|
| device_id | 是 | string | 设备唯一 id,可使用 IMEI |
| timestamp | 是 | int64 | 时间戳,单位:秒 |
| nonce | 是 | string | 随机字符串,8~20 个字符 |
| sign | 是 | string | 参考《生成 sign 的示例代码》 |
| imei | 否 | string | 设备 IMEI,可传空字符串 |
| data | 否 | string | 自定义 data,可传空字符串 |
| password | 否 | string | 设备密码,用于推流、录像等功能 |
| device_type_id | 是 | int | 设备类型 ID |
| model_number | 是 | int | 型号 ID |
| device_name | 否 | string | 设备名称 |
curl 'https://open.eye4cloud.com/xxxxx/open/v1/device/create' \
-H 'Content-Type: application/json' \
--data-raw '{
"device_id": "xxx",
"timestamp": 1755685731,
"nonce": "<YOUR_NONCE>",
"sign": "<EXPIRED_SIGN>",
"password": "<YOUR_DEVICE_PASSWORD>",
"device_type_id": 188,
"model_number": 136
}'