调用该接口根据设备ID获取支持TCA(trigger、condition、action)的功能属性列表。
| 路径 | /iotid/scene/ability/list |
| 版本号 | 1.0.4 |
| 协议 | HTTP,HTTPS |
| 请求方法 | POST |
| 是否需要用户身份鉴权 | 是 |
| 超时时间 | 3000 |
请求参数
| 名称 | 类型 | 是否必选 | 示例值 | 描述 |
|---|---|---|---|---|
| iotId | String | 是 | 设备ID,生活物联网平台为设备颁发的ID,设备的唯一标识符。 | |
| flowType | Int | 是 | 流程类型。0(表示trigger);1(表示condition);2(表示action)。 |
返回数据
| 名称 | 类型 | 示例值 | 描述 |
|---|---|---|---|
| name | String |
功能名称。 |
|
| identifier | String |
功能标识符。 |
|
| categoryType | String |
品类名称。 |
|
| type | Int |
功能类型。1(表示属性);2(表示服务);3(表示事件)。 |
示例
请求示例
{
"id": "1509086454180",
"version": "1.0",
"request":{
"apiVer": "1.0.4",
"iotToken": "token"
},
"params":{
"iotId": "value0",
"flowType": "value1"
}
}
正常返回示例
JSON 格式
{
"code": 200,
"data": [{
"name": "开关",
"identifier": "switch",
"categoryType": "xxxx",
"type": 1
}],
"message": "success"
}
异常返回示例
JSON 格式
{}