Dialogflow POST:方法列表意图代码400:方法:projects.agent.intents项目.lis公司

2024-10-01 07:10:55 发布

您现在位置:Python中文网/ 问答频道 /正文

在API引用中声明,除了项目名称之外,所有参数都是可选的。在

但当我尝试这个:

url = 'https://dialogflow.googleapis.com/v2beta1/projects/'+config["DFproject"]+'/agent/intents'
headers = {'Authorization': "Bearer "+access_token, 'content-type': 'application/json'}

r = requests.post(url, headers=headers)

我得到:

^{pr2}$

我以为display_的名字来自于响应。 那我该怎么设置呢? 这是API:Google API


Tags: httpscomapiconfig声明url参数agent