繁体   English   中英

Google Actions帐户关联流程后,智能家居应用返回错误

[英]Smart home app return error after Google Actions Account Linking Flow

我正在开发Google Smart Home App,并且使用我的开发帐户链接到Smart Home App。

令牌交换之前一切都很好。 我发现Google助理显示“出了点问题,请重试。” 似乎帐户链接失败。 我检查了官方文件,但找不到错误的地方。

以下作为令牌交换API返回:

{
 "token_type":"bearer",
  "access_token":"5699ebed735aa4c58836ad5ccd025e2c",
  "refresh_token":"8e8119ab5fbec7e3c5b5df3a162b4a3e",
  "expires_in":3600
}

The following as actions.json:

{
 "actions": [{
   "name": "actions.devices",
    "deviceControl": {
    },
   "fulfillment": {
     "conversationName": "automation"
   }
 }],
 "conversations": {
   "automation" :
   {
     "name": "automation",
     "url": "https://xxxxxx"
   }
 }
}

顺便说一句,我尝试了很多次,但我的服务器从未收到“ action.devices.SYNC”。

一旦添加了实现API版本,它便开始工作。

 "conversations": {
   "automation" :
   {
     "name": "automation",
     "url": "https://xxxxxx",
     "fulfillmentApiVersion": 2
   }
 }

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM