ShawnDen-coder / webhook_bridge

Bridge Webhook into your tool or internal integration.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

logo

webhook-bridge

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

logo

Installing

You can install via pip.

pip install webhook_bridge

or through clone from Github.

git clone https://github.com/loonghao/webhook_bridge.git

Install package.

python setup.py install

QuickStart

Launch server.

# Load example plugin for test.
set WEBHOOK_BRIDGE_SERVER_PLUGINS=C:\Users\hao.long\webhook_bridge_server\example_plugins
webhook-bridge

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

local docs power by fastapi http://localhost:5001/docs

About

Bridge Webhook into your tool or internal integration.

License:MIT License


Languages

Language:Python 100.0%