我試圖讓火力地堡的用戶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