@caredoc/notification

Caredoc notification classes

Usage no npm install needed!

<script type="module">
  import caredocNotification from 'https://cdn.skypack.dev/@caredoc/notification';
</script>

README

notification

Usage

import {PushService, SlackService} from '@caredoc/notification';

// PUSH
admin.initializeApp({...});
const pushService = new PushService();
await pushService.sendNotification(message);

// SLACK
const pushService = new SlackService(API_TOKEN);

await pushService.sendNotification(
    channel,
    message,
);