我如何在 Dialogflow 中获取用户访问令牌?
How i can get user access token in Dialogflow?
我试图在对话流中找到用户访问令牌,因为我试图将它与 botman.io 相关联,但它不起作用
这是代码:
$botman = app('botman');
$dialogflow = Dialogflow::create('token')->listenForAction();
$botman->middleware->received($dialogflow);
$botman->hears('weathersearch', function (BotMan $bot) {
$extras = $bot->getMessage()->getExtras();
$bot->reply('I'm working');
})->middleware($dialogflow);
如何找到我的令牌?
你可以试试这个:
https://github.com/genkovich/DialogFlowBotManMiddleware
我试着写了详细的说明:)
我试图在对话流中找到用户访问令牌,因为我试图将它与 botman.io 相关联,但它不起作用 这是代码:
$botman = app('botman');
$dialogflow = Dialogflow::create('token')->listenForAction();
$botman->middleware->received($dialogflow);
$botman->hears('weathersearch', function (BotMan $bot) {
$extras = $bot->getMessage()->getExtras();
$bot->reply('I'm working');
})->middleware($dialogflow);
如何找到我的令牌?
你可以试试这个: https://github.com/genkovich/DialogFlowBotManMiddleware
我试着写了详细的说明:)