v0.6.0
A Deno module to send IFTTT webhook.
Attributes
Includes Deno configuration
Repository
Current version released
a year ago
Send IFTTT Webhook (Deno)
Heat | Release - Latest | Release - Pre | |
---|---|---|---|
| | () | () |
A Deno module to send IFTTT webhook.
๐ Other Edition:
๐ Documentation
Getting Started
- Deno >= v1.35.0
allow-net
(Allow Network Addresses):maker.ifttt.com
/* 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 IFTTTWebhook { constructor(key: string | URL, options: IFTTTWebhookOptions = {}): IFTTTWebhook; send(eventName: string, payload: IFTTTWebhookStandardPayload = {}): Promise<Response>; sendArbitrary(eventName: string, payload: JsonValue = {}): Promise<Response>; static send(key: string | URL, eventName: string, payload: IFTTTWebhookStandardPayload = {}): Promise<Response>; static sendArbitrary(key: string | URL, eventName: string, payload: JsonValue = {}): Promise<Response>; }
function sendIFTTTWebhook(key: string | URL, eventName: string, payload: IFTTTWebhookStandardPayload = {}): Promise<Response>;
function sendIFTTTWebhookArbitrary(key: string | URL, eventName: string, payload: JsonValue = {}): Promise<Response>;
interface IFTTTWebhookOptions extends Pick<ExFetchOptions, "event" | "timeout"> { /** * Retry options. * @default {} */ retry?: Omit<ExFetchRetryOptions, "condition">; }
interface IFTTTWebhookStandardPayload { value1?: string; value2?: string; value3?: string; }
Example
new IFTTTWebhook("my-ifttt-webhook-key").sendArbitrary("test", { message: "Hello, world!" });