bbcap-webhook
TypeScript icon, indicating that this package has built-in type declarations

0.0.5 • Public • Published

#Dependências

#Instalação

npm i bbcap-notify-error

#Exemplo

const Webhook = require('bbcap-notify-error')({url: '<URL_WEB_HOOK>'})
// Instance.<method>
Webhook.notifyMessage(err, '<METHOD_NAME>', '<PROJECT_NAME>')
  .then(result => {...})
  .catch(err => {...})

##Enviar mensagem de texto

function methodName(req, res) {
    try{
    	...
    }catch(err) {
        Webhooks.notifyMessage(err, 'methodName', 'ProjectName')
          .then(result => {...})
          .catch(error => {...})
     }
}

Readme

Keywords

none

Package Sidebar

Install

npm i bbcap-webhook

Weekly Downloads

0

Version

0.0.5

License

ISC

Unpacked Size

14.6 kB

Total Files

9

Last publish

Collaborators

  • victorlessa