Skip to content

Latest commit

 

History

History
29 lines (24 loc) · 579 Bytes

USAGE.md

File metadata and controls

29 lines (24 loc) · 579 Bytes
import { Dingify } from "dingify";

const dingify = new Dingify({
    apiKey: "<YOUR_API_KEY_HERE>",
});

async function run() {
    const result = await dingify.events.create({
        name: "You got a new payment",
        channel: "new-channel-name",
        userId: "user-999",
        icon: "🎉",
        notify: true,
        tags: {
            plan: "premium",
            cycle: "monthly",
        },
    });

    // Handle the result
    console.log(result);
}

run();