很多东西都有 webhook,但是有些服务的文档写的很不清楚,完全不知道他发送的 webhook 的内容是什么。 就写了一个超级小的程序。 https://github.com/DiamondYuan/WebhookViewer
随手写的,代码还没优化,使用的人多了应该会有内存问题。
我已部署在自己的服务器上了。
curl -d '{"key1":"value1", "key2":"value2"}' -H "Content-Type: application/json" -X POST http://webhook.yfd.im/test
curl http://webhook.yfd.im/test
{"key1":"value1", "key2":"value2"}
test 可以替换成任意你想要的字符。