简体   繁体   English

如何通过代码设置具有动态值的 dialogflow webhook 标头?

[英]How to set dialogflow webhook headers with dynamic values by code?

Is there a way to set webhook headers by code?有没有办法通过代码设置 webhook 标头?

I'd like to send an authorization header to the fulfillment webhook but I need to set it dynamically from code (using nodejs)我想向实现 webhook 发送一个授权标头,但我需要从代码中动态设置它(使用 nodejs)

At the moment my headers are empty.目前我的标题是空的。 在此处输入图片说明

Currently, you could pass a header via webhookHeaders of the QueryParameters object.目前,您可以通过QueryParameters对象的webhookHeaders传递标头。 It's available from v2beta1 version.它可以从v2beta1版本获得。 Check it out https://cloud.google.com/dialogflow/docs/reference/rest/v2beta1/QueryParameters检查一下https://cloud.google.com/dialogflow/docs/reference/rest/v2beta1/QueryParameters

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

相关问题 如何通过 dialogflow API 服务将请求标头从集成传递到我的 webhook 服务? - How to pass request headers from integration to my webhook service through dialogflow API service? 如何在不使用 webhook 客户端的情况下设置 dialogflow fulfillment response json 上下文? - How to set dialogflow fulfillment response json context without using webhook client? 如何制作多语言Dialogflow Webhook /实现? - How to make a multiple language Dialogflow webhook/fulfillment? 如何在基于Azure的Dialogflow中创建自定义webhook? - How to create a custom webhook in Dialogflow based on Azure? 如何将我本地的webhook连接到对话流? - How to connect webhook of my local to dialogflow? 如何使用 nodejs 在 Dialogflow 中处理 webhook 实现 - How to handle webhook fulfillment in Dialogflow using nodejs 如何在 dialogflow webhook 中创建上下文并保存参数 - How to create context and save parameters in dialogflow webhook 如何将 Dialogflow 代理部署到 python 或 php webhook? - How to deploy Dialogflow agent to python or php webhook? 在 dialogflow webhook 中设置了响应,但它返回未设置响应 - Response is set in dialogflow webhook but it returns that no response has been set 如何使用履行代码在 Dialogflow 中设置 agent.parameters? - How to set agent.parameters in Dialogflow using fulfillment code?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM