生成直接令牌的问题 [英] issue of Generate a Direct Line token
本文介绍了生成直接令牌的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我尝试根据邮递员中显示的错误.
{
"error": {
"code": "BadArgument",
"message": "Missing token or secret"
}
}
我的查询在这里
https://directline.botframework.com/v3/directline/tokens/generate?Authorization = Bearer EWXpigVssN0.4b2ePfz9L_E3mMM37be6yBGXdgI2GUul7Pm8aRNcUeg&content-Type = application/json
https://directline.botframework.com/v3/directline/tokens/generate?Authorization=Bearer EWXpigVssN0.4b2ePfz9L_E3mMM37be6yBGXdgI2GUul7Pm8aRNcUeg&content-Type=application/json
推荐答案
您正在发送GET请求,但您需要做的是发送具有授权的 POST 请求>设置为承载者令牌
You are sending a GET request but what you need to do is send a POST request with the Authorization set to a Bearer Token
使用 POSTMAN ,您可以像下面这样进行操作:
Using POSTMAN you can do this like below:
这篇关于生成直接令牌的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文