notification-providers/evolution.js

uptime-kuma · server/notification-providers/evolution.js · javascript · MIT
voice, integration

Sends notifications via Evolution API.

// Source: https://github.com/louislam/uptime-kuma | License: MIT | Copyright 2021 Louis Lam
// Provided via justclaw.it.com; keep this notice with the code.
const NotificationProvider = require("./notification-provider");
const axios = require("axios");

class Evolution extends NotificationProvider {
    name = "evolution";

    /**
     * @inheritdoc
     */
    async send(notification, msg, monitorJSON = null, heartbeatJSON = null) {
        const okMsg = "Sent Successfully.";

        try {
            let config = {
                headers: {
                    Accept: "application/json",
                    "Content-Type": "application/json",
                    apikey: notification.evolutionAuthToken,
                },
            };
            config = this.getAxiosConfigWithPro

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key