Questions tagged [webhooks]

Webhooks are a mechanism to listen and react to events using an HTTP callback: an HTTP POST that occurs when an event occurs.It is an alternative to HTTP polling.

What is it?

Webhooks are a mechanism to listen and react to events using an HTTP callback: an HTTP POST that occurs when an event occurs.It is an alternative to HTTP polling.

Webhooks are a mean to extend the functionality of a service and a way to receive valuable information in near real-time, rather than continually polling a service for that data and receiving nothing valuable most of the time.

How does it work?

A web application implementing WebHooks will POST a message to a user-specified URL when certain events occur. For example, GitHub implements post-receive webhooks that allow users to integrate with a wide variety of services such as Twitter, Basecamp, or a custom script created by the user.

Related tags

  • Use for local hooking that does not use
  • Use for hooking of git events. Use together with only for git services that use webhooks as a replacement for githooks.
  • Use for webhooks used on Github as alternative to githooks.
  • Prefer more specific tags for questions about the use of webhooks in the context of spefic APIS, such as , , etc...

See also

4650 questions
127
votes
3 answers

Differences between webhook and websocket?

I've always wanted to do a real-time chat. I've done that years ago in PHP+Ajax+Mysql and broke my server. Then I tried with Flash+ a text file. I gave up and haven't tried in 10 years. But recently I heard about webhooks and websockets. And they…
David 天宇 Wong
  • 3,724
  • 4
  • 35
  • 47
86
votes
4 answers

Write formatted JSON in Node.js

I'm using Node.js to POST JSON to PostBin but the data is being wrongly formated (as you can see here: http://www.postbin.org/1cpndqw). This is the code I'm using for tesT: var http = require('http'); var options = { host: 'www.postbin.org', …
donald
  • 23,587
  • 42
  • 142
  • 223
81
votes
10 answers

How can I sync documentation with Github Pages?

I have a project together with several people and we have a README.md file with a bunch of GitHub Flavored Markdown that is rendered on our GitHub page. We also set up a GitHub Pages branch which is hosted under our GitHub Organization's subdomain,…
Cory Gross
  • 36,833
  • 17
  • 68
  • 80
58
votes
2 answers

Difference between ASP.NET WebHooks and Signal-R

What is the difference between the newly release ASP.NET WebHooks and Signal-R? What are the advantages or disadvantages? What are the use cases for each technology?
Muhammad Rehan Saeed
  • 35,627
  • 39
  • 202
  • 311
56
votes
2 answers

Create a GitHub webhook for when a pull request is accepted & merged to master

I have a webhook that currently fires on push to any branch. This triggers the webhook far too frequently. Ideally, the webhook would only fire when a pull request is merged into master. I don't see that as an option, though: Is there a way to get…
brentonstrine
  • 21,694
  • 25
  • 74
  • 120
55
votes
10 answers

Slack webhook html table

I have a HTML table that I am trying to post to Slack via webhook. Is there a way to post the HTML table to Slack? Here is the HTML code: HTML Tables
Punter Vicky
  • 15,954
  • 56
  • 188
  • 315
51
votes
3 answers

How do I change facebook messenger bot webhook?

I have successfully implemented a facebook bot. It's working fine. I was trying to change the webhook url now as I have to port it to a different server with a new domain. There is an option to change the events but I could not find and option to…
delsanic
  • 777
  • 1
  • 5
  • 14
50
votes
3 answers

WooCommerce payment complete hook

After a long search, I found this post: WooCommerce hook for "after payment complete" actions which talks about creating web hooks in WooCommerce to notify a script to do...something...doesn't matter too much what. I've also read everything I can…
Aaron Trumm
  • 679
  • 1
  • 5
  • 7
46
votes
5 answers

How do I create a GitLab webhook?

I've read that GitLab is capable of sending messages to other servers via "web hooks" but I can't find where one would create one. Can someone point me in the right direction?
leech
  • 8,293
  • 7
  • 62
  • 78
45
votes
7 answers

Facebook Messenger webhook setup, but not triggered

So I'm trying to setup a bot for the new Facebook Messenger API. I'm following the quickstart. I setup the webhook ok, and see it in my webhooks, I called this: https://graph.facebook.com/v2.6/me/subscribed_apps?access_token=%3Ctoken%3E and it did…
James
  • 17,965
  • 11
  • 91
  • 146
40
votes
5 answers

How do I receive Github Webhooks in Python

Github offers to send Post-receive hooks to an URL of your choice when there's activity on your repo. I want to write a small Python command-line/background (i.e. no GUI or webapp) application running on my computer (later on a NAS), which…
Christoph
  • 5,480
  • 6
  • 36
  • 61
37
votes
3 answers

Send webhook upon sending or receipt of email

I have been looking around for how to create a webhook that is triggered when an email is sent or received in Gmail. For example someone sends an email, that email gets POSTed as a JSON object to one of my applications. I have found many middleman…
Ryan-Neal Mes
  • 6,003
  • 7
  • 52
  • 77
37
votes
3 answers

How to create a Gitlab webhook to update a mirror repo on Github?

I would like to create a webhook within Gitlab to automatically update a mirror repository on Github, whenever a push event happens. I've checked this page, but I didn't understand how it is done. My Gitlab version is 6.5. Here is the configuration…
Yamaneko
  • 3,433
  • 2
  • 38
  • 57
36
votes
1 answer

Github push event signature don't match

I'm coding a Webhook for GitHub, and implemented secure verification in KOA.js as: function sign(tok, blob) { var hmac; hmac = crypto .createHmac('sha1', tok) .update(blob) .digest('hex'); return 'sha1=' + hmac; } ... key =…
marcoslhc
  • 1,194
  • 1
  • 17
  • 29
36
votes
11 answers

Is it possible to set localhost as a Stripe webhook URL?

I am creating a payment gateway using Stripe. I want to set my localhost url localhost/stripe/webhook.php as my webhook url. Is it possible to set a localhost address as a webhook url? This will be used to create a mail service that is triggered on…
DjangoDev
  • 889
  • 6
  • 16
  • 25
1
2 3
99 100