v0.3.0
A Deno module to send IFTTT webhook.
Attributes
Includes Deno configuration
Repository
Current version released
2 years ago
Send IFTTT Webhook (Deno)
Releases | Latest () | Pre () |
---|---|---|
π Description
A Deno module to send IFTTT webhook.
π Other Edition:
π Documentation
Getting Started
- Deno >= v1.34.0
/* Either */
import { ... } from "https://deno.land/x/send_ifttt_webhook/mod.ts";// Named Import
import * as sendIFTTTWebhook from "https://deno.land/x/send_ifttt_webhook/mod.ts";// Namespace Import
import IFTTTWebhook from "https://deno.land/x/send_ifttt_webhook/mod.ts";// Default Import (Class `IFTTTWebhook`)
API
Class
new IFTTTWebhook(key: string): IFTTTWebhook; .send(eventName: string, payload: IFTTTWebhookStandardPayload = {}): Promise<Response>; .sendArbitrary(eventName: string, payload: object = {}): Promise<Response>; IFTTTWebhook.send(key: string, eventName: string, payload: IFTTTWebhookStandardPayload = {}): Promise<Response>; IFTTTWebhook.sendArbitrary(key: string, eventName: string, payload: object = {}): Promise<Response>;
Function
sendIFTTTWebhook(key: string, eventName: string, payload: IFTTTWebhookStandardPayload = {}): Promise<Response>;
sendIFTTTWebhookArbitrary(key: string, eventName: string, payload: object = {}): Promise<Response>;
Interface / Type
interface IFTTTWebhookStandardPayload { value1?: string; value2?: string; value3?: string; }
Example
new IFTTTWebhook("my-ifttt-webhook-key").sendArbitrary("test", { message: "Hello, world!" });