Skip to content

Latest commit

 

History

History
56 lines (42 loc) · 2.2 KB

README.md

File metadata and controls

56 lines (42 loc) · 2.2 KB

logo

webhook-bridge

Bridge Webhook into your tool or internal integration. Like: Sentry WeChat, POPO

Python Version Nox PyPI Version Downloads Downloads Downloads License PyPI Format Maintenance

logo

Setup Dev Environment

pip install -r requirements-dev.txt

Test in local

This command line will auto load example plugins.

nox -s local-test

Test post data to the webhook bridge

curl -X POST "http://localhost:5001/api/plugin/sentry" -H  "accept: application/json" -H  "Content-Type: application/json" -d "[[\"browser\",\"Chrome 28.0.1500\"],[\"browser.name\",\"Chrome\"],[\"client_os\",\"Windows 8\"],[\"client_os.name\",\"Windows\"],[\"environment\",\"prod\"],[\"level\",\"error\"],[\"sentry:user\",\"id:1\"],[\"server_name\",\"web01.example.org\"],[\"url\",\"http://example.com/foo\"]]"

If everything is set up properly, you will see that the plugin is executed normally.

logo

Installing

You can install via pip.

pip install webhook-bridge