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'
#接口调用示例
const params = {
sceneId: '场景ID',
sceneName: '场景名',
}
bridge
.editSiriInstructShortcut(params)
.then((res) => {
console.log(res)
})
.catch((err) => {
console.log(err)
})
| 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快捷指令短语"
}