0

我正在使用新的 Actions Builder 构建一个动作,一切都很顺利。我只是设置了帐户链接,并且可以成功链接我的帐户,但是,一旦我链接了我的帐户,后续请求中就不会包含任何令牌供我使用,即使帐户链接状态在请求中为“已链接”也是如此。谁能解释为什么我没有看到令牌?

作为参考,这是我的一个请求的一个版本。

{
  "requestJson": {
    "handler": {
      "name": "main"
    },
    "intent": {
      "name": "actions.intent.MAIN",
      "params": {},
      "query": "Talk to my new app"
    },
    "scene": {
      "name": "actions.scene.START_CONVERSATION",
      "slotFillingStatus": "UNSPECIFIED",
      "slots": {},
      "next": {
        "name": "ListPrompt"
      }
    },
    "session": {
      "id": "ABwppHE7M6NS8KdyjljEptrtZZ5GkE3qDdaiwjYbL9ehrA-t_c-ZsCrZ_WhN0ZTG5lXXXXXXhU6Im5vgeSwow",
      "params": {},
      "typeOverrides": [],
      "languageCode": ""
    },
    "user": {
      "locale": "en-US",
      "params": {},
      "accountLinkingStatus": "LINKED",
      "verificationStatus": "VERIFIED",
      "packageEntitlements": [],
      "lastSeenTime": "2020-07-13T12:02:42Z"
    },
    "home": {
      "params": {}
    },
    "device": {
      "capabilities": [
        "SPEECH",
        "RICH_RESPONSE",
        "LONG_FORM_AUDIO"
      ]
    }
  }
}
4

1 回答 1

1

与新的 Actions Builder 进行帐户链接的 Google 文档现已更新,包含更多信息。令牌现在在传入请求的标头中提供。有关如何查找和解码的详细信息,请访问https://developers.google.com/assistant/identity/google-sign-in#handle_data_access_requests

于 2020-07-21T13:27:45.917 回答