# index.js
const functions = require('firebase-functions');
const DialogflowApp = require('actions-on-google').DialogflowApp;
exports.handler = functions.https.onRequest((req, res) => {
const app = new DialogflowApp({ request: req, response: res });
console.log("Request", req);
console.log('Request Processing ');
function responseHandler(app) {
let intent = app.getIntent();
console.log("INFO Intent : ", intent);
switch (intent) {
case 'input.welcome':
console.log("INFO : UserId: ", app.getUser().userId);
app.ask("Welcome to notify Applcation")
break;
case 'finish_permission':
if (app.isPermissionGranted()) {
console.log("INFO : UserId: ", app.getUser().userId);
app.ask("Ok, I'll start alerting you");
} else {
app.ask("Ok, I won't alert …Run Code Online (Sandbox Code Playgroud)push-notification firebase actions-on-google google-home dialogflow-es
我想将数据从 Kafka 主题推送到 REST 端点。(非企业版且未使用融合的 kafka 托管服务)。
我正在考虑使用 Confluence 的 Kafka Connect HTTP 接收器,但我意识到它有 30 天的试用期,之后需要许可证。
是否有任何其他开源/免费选项可用作 Apache Kafka 和 REST API 之间的双向桥梁。