v0.7.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.
🔰 Begin
Deno
- Target Version: >= v1.35.0
- Require Permission:
allow-net
(Allow Network Addresses):maker.ifttt.com
- Domain/Registry:
- Deno Land
import ... from "https://deno.land/x/send_ifttt_webhook[@<Tag>]/mod.ts";
- DenoPKG
import ... from "https://denopkg.com/hugoalh-studio/send-ifttt-webhook-deno[@<Tag>]/mod.ts";
- GitHub Raw [Require Tag]
import ... from "https://raw.githubusercontent.com/hugoalh-studio/send-ifttt-webhook-deno/<Tag>/mod.ts";
- Pax
import ... from "https://pax.deno.dev/hugoalh-studio/send-ifttt-webhook-deno[@<Tag>]/mod.ts";
- Deno Land
ℹ️ Notice: Although it is recommended to import main module with path
mod.ts
in general, it is also able to import part of the module with sub path if available, but do not import if:
- it’s file path has an underscore prefix (e.g.:
_foo.ts
,_util/bar.ts
), or- it is a benchmark or test file (e.g.:
foo.bench.ts
,foo.test.ts
), or- it’s symbol has an underscore prefix (e.g.:
export function _baz() {}
).These elements are not considered part of the public API, thus no stability is guaranteed for them.
🧩 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" | "retry" | "timeout" | "userAgent"> {}
interface IFTTTWebhookStandardPayload { value1?: string; value2?: string; value3?: string; }
ℹ️ Notice: Documentation is included inside the script file, can view it via:
✍️ Example
import { IFTTTWebhook } from "https://raw.githubusercontent.com/hugoalh-studio/send-ifttt-webhook-deno/main/mod.ts"; new IFTTTWebhook("my-ifttt-webhook-key").sendArbitrary("test", { message: "Hello, world!" });