5 ms·
This is how I send the data to a default webhook https://github.com/xdamman/ReplayLastGoal/blob/master/hooks/webhook.js https://github.com/xdamman/ReplayLastGoa
by xdamman 12y ago
This 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 :(