npm

npm’s 2019 JavaScript ecosystem survey analysis is now available!Get your copy here »

botpress-webhook

1.0.1 • Public • Published

botpress-webhook

Provides an interface and APIs to manage webhooks to your bot.

Quick start

From the module page you can create and delete platforms. A platform is an http endpoint where you can post to.

For example you can create a new "test" platform.

The endpoint will be:

https://<hostname>:<port>/api/botpress-webhook/webhook/test

You can now post to it:

curl -H "Content-Type: application/json" -X POST -d '{"payload":"value"}' https://<hostname>:<port>/api/botpress-webhook/webhook/test?text=Cheers&type=curl

And an incoming message is sent to be heard:

{  
   platform:'test',
   type:'curl',
   text:'Cheers',
   raw:{  
      payload:'value'
   }
}

Community

There's a Slack community where you are welcome to join us, ask any question and even help others.

Get an invite and join us now! 👉https://slack.botpress.io

License

botpress-webhook is licensed under AGPL-3.0

Keywords

none

install

npm i botpress-webhook

Downloadsweekly downloads

5

version

1.0.1

license

AGPL-3.0

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
  • avatar
Report a vulnerability