请扫码查看示例
# getAllSiriShortcuts ^7.8
获取场景里的所有 Siri Shortcut 列表
# 请求参数
N/A
# 引入接口模块
import bridge from '@minix-iot/etsbridge-sdk'
1
# 接口调用示例
bridge
.getAllSiriShortcuts()
.then((res) => {
console.log(res)
})
.catch((err) => {
console.log(err)
})
1
2
3
4
5
6
7
8
2
3
4
5
6
7
8
# 接口返回示例
{
"list": [
{
"sceneId": "xxxx",
"homegroupId": "xxss",
"invocationPhrase": "打开加湿器"
},
{
"sceneId": "xxxx",
"homegroupId": "xxss",
"invocationPhrase": "打开空调"
}
]
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16