Webhooker is an example implementation of webhook service. It allows for posting a message to the webhook. The list of all posted message can then be displayed.
go build webhooker.go
To create a new service token:
webhooker createToken --dburi <mongodb_connection_string>
To start the webhook service, execute:
webhooker listen --certfile <certificate.crt> --keyfile <certificate.key> --dburi <mongodb_connection_string> --listen-address [ip_address]<:port>
To post a message to the webhook service:
curl -k -X POST -H 'Content-Type: application/json' -d '{"token":"<token>","channel":"<channel_not_used_yet>","message":"<message_to_be_posted>"}' https://<ip_address>:<port>/webhook
To display already posted messages, visit:
curl -k https://<ip_address>:<port>/wall
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
GPL 3.0