简要描述:
- 设备端获取阿里设备证书信息
接口版本:
| 版本号 | 制定人 | 制定日期 | 修订日期 | 
|---|---|---|---|
| 1.1.0 | 李晋 | 2023-04-23 | 2023-04-23 | 
请求URL:
请求方式:
- GET
请求头:
| 参数名 | 是否必须 | 类型 | 说明 | 
|---|---|---|---|
| Content-Type | 是 | string | 请求类型: application/json | 
| Authorization | 是 | string | 请求token | 
请求参数:
无
返回示例:
正确时返回:
{
    "code": 0,
    "msg": "ok",
    "err_code": 10000,
    "result": {
        "deviceSecret": "3d3f96f62e258669ab5f5c0ba54d9796",
        "productKey": "a1mHUxiMvrD",
        "deviceName": "MPC6K7PhdTwEF66Tmiv8",
        "productSecret": "xxx2"
    }
}错误时返回:
{
    "code": -1,
    "msg": "查询失败",
    "err_code": -1
}返回参数说明:
| 参数名 | 类型 | 是否必须 | 说明 | 
|---|---|---|---|
| code | int | 是 | 状态码,0:调用成功,非0:调用失败 | 
| msg | string | 是 | 错误提示信息 | 
| err_code | int | 是 | 错误码,当code为0时返回10000,否则返回对应错误码 | 
| result | object | 否 | 返回具体数据 | 
result字段说明:
| 参数名 | 类型 | 是否必须 | 说明 | 
|---|---|---|---|
| deviceSecret | string | 是 | 设备秘钥 | 
| productKey | string | 是 | 产品key | 
| deviceName | string | 是 | 设备名称 | 
| productSecret | string | 是 | 产品秘钥 | 
备注:
- 更多返回错误代码请看首页的错误代码描述
  创建时间:2023-05-25 11:24
最后编辑:陈勇琦 更新时间:2025-04-29 15:30
最后编辑:陈勇琦 更新时间:2025-04-29 15:30
