getAllSiriInstructShortcuts 获取已创建的 siri 自定义指令 shortcut 列表
getAllSiriInstructShortcuts ^8.7
获取已创建的 siri 自定义指令 shortcut 列表
#请求参数
N/A
#引入接口模块
import bridge from '@minix-iot/etsbridge-sdk'
#接口调用示例
bridge
.getAllSiriInstructShortcuts()
.then((res) => {
console.log(res)
})
.catch((err) => {
console.log(err)
})
- 成功时返回 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":"空调制冷"
},
],
}
浙公网安备 33010602011771号