Send IFTTT Webhook (Deno)
Releases | Latest () | Pre () |
---|---|---|
📝 Description
A Deno module to send IFTTT webhook.
🔗 Other Edition:
📚 Documentation
Getting Started
- Deno >= v1.35.0
/* Either */
import { ... } from "<URL>";// Named Import
import * as sendIFTTTWebhook from "<URL>";// Namespace Import
import IFTTTWebhook from "<URL>";// Default Import (Class `IFTTTWebhook`)
Domain / Registry | URL |
---|---|
Deno Land | https://deno.land/x/send_ifttt_webhook[@<Tag>]/mod.ts |
DenoPKG | https://denopkg.com/hugoalh-studio/send-ifttt-webhook-deno[@<Tag>]/mod.ts |
GitHub Raw * | https://raw.githubusercontent.com/hugoalh-studio/send-ifttt-webhook-deno/<Tag>/mod.ts |
Pax | https://pax.deno.dev/hugoalh-studio/send-ifttt-webhook-deno[@<Tag>]/mod.ts |
*: Must provide a tag.
API
Class
new IFTTTWebhook(key: string): IFTTTWebhook; .send(eventName: string, payload: IFTTTWebhookStandardPayload = {}): Promise<Response>; .sendArbitrary(eventName: string, payload: JsonValue = {}): Promise<Response>; IFTTTWebhook.send(key: string, eventName: string, payload: IFTTTWebhookStandardPayload = {}): Promise<Response>; IFTTTWebhook.sendArbitrary(key: string, eventName: string, payload: JsonValue = {}): Promise<Response>;
Function
sendIFTTTWebhook(key: string, eventName: string, payload: IFTTTWebhookStandardPayload = {}): Promise<Response>;
sendIFTTTWebhookArbitrary(key: string, eventName: string, payload: JsonValue = {}): Promise<Response>;
Interface / Type
interface IFTTTWebhookStandardPayload { value1?: string; value2?: string; value3?: string; }
Example
new IFTTTWebhook("my-ifttt-webhook-key").sendArbitrary("test", { message: "Hello, world!" });