# getAllSiriInstructShortcuts ^8.7
获取已创建的siri 自定义指令 shortcut 列表
# 请求参数
N/A
# 接口调用示例
this.$bridge
  .getAllSiriInstructShortcuts()
  .then(res => {
    this.$alert(res)
  })
  .catch(err => {
    this.$toast(err)
  })
 1
2
3
4
5
6
7
8
9
10
2
3
4
5
6
7
8
9
10
- 成功时返回 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