1.0.13 • Published 4 years ago
@hhaluk/pigeon v1.0.13

Pigeon is a collection of commonly used webhooks.
Supported Notification Channels
- Google Chat
- Slack
- Telegram
- Private
- Discord
- Sendgrid
- Ses
- Mailgun
Usage
$ npm install --save @hhaluk/pigeonimport * as Pigeon from '@hhaluk/pigeon'
function foo () {
Pigeon.NotifyGoogleChat(body) // pigeon can obtain url from environment. See Api Reference Table.
Pigeon.NotifySlackChannel(body, url) // alternatively url can be injected directly.
}Api Reference Table
| Method | Arguments | Environment Variable |
|---|---|---|
| NotifyGoogleChat | body, url | GOOGLE_CHAT_API_URL |
| NotifySlackChannel | body, url | SLACK_API_URL |
| NotifyTelegramChannel | body, url | TELEGRAM_API_URL |
| NotifyPrivateChannel | body, url | PRIVATE_API_URL |