V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
爱意满满的作品展示区。
yuanfnadi

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

  •  
  •   yuanfnadi · Dec 8, 2017 · 2401 views
    This topic created in 3062 days ago, the information mentioned may be changed or developed.

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

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3577 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 11:11 · PVG 19:11 · LAX 04:11 · JFK 07:11
    ♥ Do have faith in what you're doing.