rest - 将 DialogFlow Rest API 与 API KEY 一起使用
问题描述
我正在尝试将DialogFlow REST API与 api key auth 方法一起使用。例如
https://dialogflow.googleapis.com/v2/projects/projectId/agent?key=[YOUR_API_KEY]
但它不起作用。这是结果
{ "error": { "code": 401, "message": "Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity /sign-in/web/devconsole-project .", "status": "UNAUTHENTICATED" } }
解决方案
推荐阅读
- java - 无法将 MySQL 数据库与 Eclipse Neon 连接
- verilog - 如何删除自动生成的 YOSYS 评论?
- node.js - 命中 Firebase 功能时收到 414
- c - 为什么在 TF2 中不推荐使用 convert_variables_to_constants()?
- c++ - 重载解析在模板实例化点之后查找函数
- hdfs - 当我使用水槽将文件发布到 HDFS 实时显示时连接被拒绝
- html - Flexbox wrap 不会增加父级的宽度?
- python - 熊猫数据框中并发呼叫分数之间的差异
- php - 使用 Api 平台自定义 ItemDataProvider
- c++ - 在多线程环境中使用 MPI_THREAD_SERIALIZED 时是否所有 MPI 调用都需要锁?