4 ms·
Not sure how the webhooks are supposed to work? Pressing test seems to produce an empty POST: http://requestb.in/11fvs2r1?inspect http://requestb.in/11fvs2r1?in
by tokenizerrr 12y ago
Not sure how the webhooks are supposed to work? Pressing test seems to produce an empty POST: http://requestb.in/11fvs2r1?inspect http://requestb.in/11fvs2r1?inspect
Would like to integrate this in my irc bot, but need to know the format to expect.
- xdamman 12y agoThis is how I send the data to a default webhook https://github.com/xdamman/ReplayLastGoal/blob/master/hooks/webhook.js https://github.com/xdamman/ReplayLastGoal/blob/master/hooks/... It's being sent as a classic POST request. You should be getting the following attributes: text=Goal for Belgium! #URU 1-1 #ENG #WorldCup \n📺Video: gif=http://replaylastgoal.com/videos/2014-06-19-20-31-24.gif http://replaylastgoal.com/videos/2014-06-19-20-31-24.gif video=... ... See also https://github.com/xdamman/ReplayLastGoal/blob/master/test/hooks.spec.js#L4-L10 https://github.com/xdamman/ReplayLastGoal/blob/master/test/h...
- tokenizerrr 12y agoThanks! Got it working I think. The test worked, and I saved and it told me the hook was activated, though I received no notification for the german goal. Maybe I was a bit too late, since I only registered several minutes before the goal happened.
- tokenizerrr 12y agoNo POSTs for any of the other goals :(