getAllSiriShortcuts 获取场景里的所有 Siri Shortcut 列表

getAllSiriShortcuts ^7.8

获取场景里的所有 Siri Shortcut 列表

#请求参数

N/A

#引入接口模块

import bridge from '@minix-iot/etsbridge-sdk'

#接口调用示例

bridge
  .getAllSiriShortcuts()
  .then((res) => {
    console.log(res)
  })
  .catch((err) => {
    console.log(err)
  })

#接口返回示例

{
    "list": [
        {
            "sceneId": "xxxx",
            "homegroupId": "xxss",
            "invocationPhrase": "打开加湿器"
        },
        {
            "sceneId": "xxxx",
            "homegroupId": "xxss",
            "invocationPhrase": "打开空调"
        }
    ]
}
posted on 2024-12-28 16:37  AtlasLapetos  阅读(7)  评论(0)    收藏  举报