editSiriShortcut 编辑场景Siri Shortcut

editSiriShortcut ^7.8

编辑场景Siri Shortcut

#请求参数

Prop Type Default Comment
homegroupId String N/A 家庭ID
sceneId String N/A 场景ID

#接口调用示例

const params = {
    "homegroupId": "家庭ID",
    "sceneId": "场景ID"
}
this.$bridge
  .editSiriShortcut(params)
  .then(res => {
    this.$alert(res)
  })
  .catch(err => {
    this.$toast(err)
  })

#接口返回示例

{
    "editType": "delete/cacel/update",
    "invocationPhrase": "更新后的语音"
}
posted on 2024-12-21 14:40  AtlasLapetos  阅读(6)  评论(0)    收藏  举报