Skip to main content

Bridge Webhook into your tool or internal integration.

Project description

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

Project details


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)

Uploaded Source

Built Distribution

webhook_bridge-0.1.0-py2.py3-none-any.whl (6.7 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page