Bridge Webhook into your tool or internal integration.
Project description
webhook-bridge
Bridge Webhook into your tool or internal integration. Like: Sentry WeChat, POPO
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.
local docs power by fastapi
http://localhost:5001/docs
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
webhook_bridge-0.1.0.tar.gz
(8.2 kB
view hashes)
Built Distribution
Close
Hashes for webhook_bridge-0.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 14fa7d73745950cda8831745ae0e09a77b89d2cc6b5b2c7e221497940feae0d4 |
|
MD5 | 633460e612af113c76ba3e75653f02d7 |
|
BLAKE2b-256 | 69906b84df08daa5b0608fabeac1f4978e56aa9acd8a348fa65844b0e1be1b57 |