请扫码查看示例
# getAllSiriInstructShortcuts ^8.7
获取已创建的 siri 自定义指令 shortcut 列表
# 请求参数
N/A
# 引入接口模块
import bridge from '@minix-iot/etsbridge-sdk'
1
# 接口调用示例
bridge
.getAllSiriInstructShortcuts()
.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
- 成功时返回 Object(res)
Prop | Type | Default | Comment |
---|---|---|---|
list | Array | N/A | list 数组,详看 list 表 |
list 属性值 Object(res)
Prop | Type | Default | Comment |
---|---|---|---|
sceneId | stirng | N/A | 场景 id |
sceneName | stirng | N/A | 场景名称 |
invocationPhrase | stirng | N/A | Siri 快捷指令短语 |
- 失败时返回
Prop | Type | Default | Comment |
---|---|---|---|
error | string | N/A | "系统版本不支持!" |
# 接口返回示例
{
"list": [
{
"sceneId":"执行的场景名称",
"sceneName":"执行的场景ID",
"invocationPhrase":"空调二十度",
},
{
"sceneId":"执行的场景名称",
"sceneName":"执行的场景ID",
"invocationPhrase":"空调制冷"
},
],
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18