小编JIS*_*T U的帖子

如何发送推送通知 - Google智能助理

   # 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

8
推荐指数
1
解决办法
1586
查看次数

Kafka Confluence HTTP Sink Connector 的开源替代方案

我想将数据从 Kafka 主题推送到 REST 端点。(非企业版且未使用融合的 kafka 托管服务)。

我正在考虑使用 Confluence 的 Kafka Connect HTTP 接收器,但我意识到它有 30 天的试用期,之后需要许可证。

是否有任何其他开源/免费选项可用作 Apache Kafka 和 REST API 之间的双向桥梁。

apache-kafka kafka-consumer-api apache-kafka-connect

3
推荐指数
1
解决办法
3303
查看次数