请扫码查看示例
# editSiriInstructShortcut ^8.7
编辑自定义指令 Siri shortcut
# 请求参数
Prop | Type | Default | Comment |
---|---|---|---|
sceneId | String | N/A | 场景 ID |
sceneName | String | N/A | 场景名 |
# 引入接口模块
import bridge from '@minix-iot/etsbridge-sdk'
1
# 接口调用示例
const params = {
sceneId: '场景ID',
sceneName: '场景名',
}
bridge
.editSiriInstructShortcut(params)
.then((res) => {
console.log(res)
})
.catch((err) => {
console.log(err)
})
1
2
3
4
5
6
7
8
9
10
11
12
2
3
4
5
6
7
8
9
10
11
12
- 成功时返回 Object(res)
Prop | Type | Default | Comment |
---|---|---|---|
editType | string | N/A | delete :删除 cacel:取消编辑 updte:更新语音指令 |
invocationPhrase | string | N/A | Siri 快捷指令短语 |
# 接口返回示例
{
"editType":"delete/cacel/update", // delete :删除 cacel:取消编辑 updte:更新语音指令
"invocationPhrase":"Siri快捷指令短语"
}
1
2
3
4
5
2
3
4
5