V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
爱意满满的作品展示区。
yuanfnadi
V2EX  ›  分享创造

写了一个小工具 查看 webhook 的内容

  •  
  •   yuanfnadi · 2017-12-08 09:51:01 +08:00 · 2027 次点击
    这是一个创建于 2324 天前的主题,其中的信息可能已经有所发展或是发生改变。

    很多东西都有 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 可以替换成任意你想要的字符。

    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2827 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 14:03 · PVG 22:03 · LAX 07:03 · JFK 10:03
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.