Skip to content

Huseyinnurbaki/pigeon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pigeon

Pigeon is a collection of commonly used webhooks.

Supported Notification Channels

  • Google Chat
  • Slack
  • Telegram
  • Private
  • Discord
  • Sendgrid
  • Ses
  • Mailgun

Usage

$ 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.
}

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

Api References