binwiederhier-ntfy

Namespace

binwiederhier-ntfy

Description:
  • Elevate your communication game with ntfy.sh! Effortlessly send push notifications to any device using simple HTTP requests. Stay connected without sign-ups or fees. Perfect for automation and alerts!

Author:

Methods

(async, static) createBinwiederhierNtfyInstance(context, body) → {BinwiederhierNtfy}

Description:
  • Create a new ntfy instance

Example
import { Context } from '@osaas/client-core';
import { createBinwiederhierNtfyInstance } from '@osaas/client-services';

const ctx = new Context();
const body: BinwiederhierNtfyConfig = { name: 'myinstance', ... };
const instance = await createBinwiederhierNtfyInstance(ctx, body);
console.log(instance.url);
Parameters:
Name Type Description
context Context

Open Source Cloud configuration context

body BinwiederhierNtfyConfig

Service instance configuration

Returns:
  • Service instance
Type
BinwiederhierNtfy

(async, static) getBinwiederhierNtfyInstance(context, name) → {BinwiederhierNtfy}

Description:
  • Get a ntfy instance

Example
import { Context } from '@osaas/client-core';
import { getBinwiederhierNtfyInstance } from '@osaas/client-services';

const ctx = new Context();
const instance = await getBinwiederhierNtfyInstance(ctx, 'myinstance');
console.log(instance.url);
Parameters:
Name Type Description
context Context

Open Source Cloud configuration context

name string

Name of the ntfy to be retrieved

Returns:
  • Service instance
Type
BinwiederhierNtfy

(async, static) removeBinwiederhierNtfyInstance(context, name)

Description:
  • Remove a ntfy instance

Parameters:
Name Type Description
context Context

Open Source Cloud configuration context

name string

Name of the ntfy to be removed