- Google Chat
- Slack
- Telegram
- Private
- Discord
- Sendgrid
- Ses
- Mailgun
$ npm install @hhaluk/pigeon
import * 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.
}
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 |