简体   繁体   English

在哪里可以找到我的 google home 操作的完整 URL?

[英]Where do I find my fullfillment URL to the google home action?

I've just been started integrating assistant to smarthome project that i'm working on.我刚刚开始将助手集成到我正在从事的智能家居项目中。 And I've initially experimenting the assistant by implementing account linking flow and sync intent.我最初通过实现帐户链接流和同步意图来试验该助手。 I tested the account linking by testing with the google developer tool for oauth flow and confirmed it worked.我通过使用用于 oauth 流程的 google 开发人员工具进行测试来测试帐户链接,并确认它有效。 Whereas, in the smarthome app, upon account linking, as soon as it completes the account linking flow I keep receiving an error message stating "Couldn't update your settings, Check your connection".而在 smarthome 应用程序中,在帐户链接后,一旦完成帐户链接流程,我就会不断收到一条错误消息,指出“无法更新您的设置,请检查您的连接”。 Didn't find much clue with the logs for troubleshoot.没有在日志中找到太多线索以进行故障排除。 And also, the solutions they were on the other posts does not seem to be working out for me as well.而且,他们在其他帖子上的解决方案似乎对我也不起作用。 Would appreciate if anyone could help resolve this.如果有人能帮助解决这个问题,我们将不胜感激。

Also, I'd like to know the place where I can find the fulfillment URL that needs to be entered when creating the smarthome action.另外,我想知道在哪里可以找到创建智能家居操作时需要输入的履行 URL。 I've been using firebase to deploy my cloud functions.我一直在使用 firebase 来部署我的云功能。 Moreover, I suspect weather the fulfillment URL I entered that was provided by codelabs sample were invalid thus assisant unable reach the fulfillment.此外,我怀疑我输入的由 codelabs 示例提供的履行 URL 无效,因此助手无法完成履行。

Your fulfillment URLs are the functions that you've created.您的履行 URL 是您创建的函数。 For Firebase, there's a specific pattern that you can follow.对于 Firebase,您可以遵循特定的模式。 If you visit your Firebase console, in the functions section, you'll see the full URL which you can copy and paste into the Fulfillment URL input.如果您访问 Firebase 控制台,在功能部分,您将看到完整的 URL,您可以将其复制并粘贴到 Fulfillment URL 输入中。

In my example, I have a cloud function named "about_info" with the pattern https://us-central1.PROJECT_ID.cloudfunctions.net/FUNCTION_NAME .在我的示例中,我有一个名为“about_info”的云函数,其模式为https://us-central1.PROJECT_ID.cloudfunctions.net/FUNCTION_NAME So you can use a similar scheme to identify what your function names will be.因此,您可以使用类似的方案来确定您的函数名称。

在此处输入图片说明

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

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