首页 > 解决方案 > 将 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" } }

标签: restdialogflow-es

解决方案


推荐阅读