我试图让火力地堡的用户ID来我的谷歌用户,但显然它是不确定的获取用户ID GoogleActions
dialogflowFirebaseFulfillment
ReferenceError: userId is not defined
at IncomingMessage.resp.on (/user_code/index.js:73:17)
at emitNone (events.js:91:20)
at IncomingMessage.emit (events.js:185:7)
at endReadableNT (_stream_readable.js:974:12)
at _combinedTickCallback (internal/process/next_tick.js:80:11)
at process._tickDomainCallback (internal/process/next_tick.js:128:9)
这是我的代码
const REQUEST_PERMISSION_ACTION = 'request_permission';
const userUID = app.getUser().userId;
const userName = app.getUserName().displayName;
console.log(userUID, 'USERRRRRRID');
我能做些什么来获取用户标识?
见https://stackoverflow.com/questions/47749476/i-can-not-get-information-with-dialogflowapp-getuser-method/47752302 – Bart
我试图让我的令牌但显然它是空的(TypeError:无法读取null属性的'accessToken') –
我指的是关于'const app = new App({request:req,response:res})的囚徒的帖子;'尝试添加更多的代码给您的帖子,以便我们可以帮助更好,如果这不起作用。 – Bart