Skip to content

Commit f78ab05

Browse files
committed
adding basic information on webhooks
1 parent 52692d1 commit f78ab05

File tree

7 files changed

+29
-3
lines changed

7 files changed

+29
-3
lines changed

application-programming-intefaces.html

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,17 @@ <h2>Why are APIs important?</h2>
4848
programs and libraries exist to rip data out of HTML but it's simpler
4949
to consume data through APIs.</p>
5050
<h2>Webhook</h2>
51-
<p>A webhook is a user-defined HTTP callback.</p>
51+
<p>A webhook is a user-defined HTTP callback to a URL that executes when on a
52+
system condition is met. The call alerts the second system and often passes
53+
data as well.</p>
54+
<p>Webhooks are important because they enable two-way communication initiation
55+
for APIs. Webhook flexibility comes in from their definition by the API user
56+
instead of the API itself.</p>
57+
<p>For example, in the <a href="https://www.twilio.com/api">Twilio API</a> when a text
58+
message is sent to a Twilio phone number Twilio sends an HTTP POST request
59+
webhook to the URL specified by the user. The URL is defined in a text box
60+
on the number's page on Twilio as shown below.</p>
61+
<p><img src="theme/img/twilio-webhook-definition.jpg" width="100%" alt="Webhook definition in the Twilio API." class="technical-diagram" /></p>
5262
<h2>API open source projects</h2>
5363
<ul>
5464
<li><a href="https://github.com/wordnik/swagger-core">Swagger</a> is an open source project

change-log.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ <h1>Change Log</h1>
4747
<h2>2014</h2>
4848
<h3>May</h3>
4949
<ul>
50+
<li>Updated APIs page with basic information on webhooks.</li>
5051
<li>Added learning checklist for source control, application dependencies,
5152
configuration management and NoSQL data stores.</li>
5253
<li>Moving learning checklists to the bottom of the pages since they are

feeds/all.atom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<feed xmlns="http://www.w3.org/2005/Atom"><title>Matt Makai</title><link href="http://www.fullstackpython.com/" rel="alternate"></link><link href="http://www.fullstackpython.com/feeds/all.atom.xml" rel="self"></link><id>http://www.fullstackpython.com/</id><updated>2014-05-26T11:50:37Z</updated></feed>
2+
<feed xmlns="http://www.w3.org/2005/Atom"><title>Matt Makai</title><link href="http://www.fullstackpython.com/" rel="alternate"></link><link href="http://www.fullstackpython.com/feeds/all.atom.xml" rel="self"></link><id>http://www.fullstackpython.com/</id><updated>2014-05-26T13:05:42Z</updated></feed>

source/content/pages/06-apis/0601-application-programming-interfaces.markdown

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,21 @@ to consume data through APIs.
2929

3030

3131
## Webhook
32-
A webhook is a user-defined HTTP callback.
32+
A webhook is a user-defined HTTP callback to a URL that executes when on a
33+
system condition is met. The call alerts the second system and often passes
34+
data as well.
35+
36+
Webhooks are important because they enable two-way communication initiation
37+
for APIs. Webhook flexibility comes in from their definition by the API user
38+
instead of the API itself.
39+
40+
For example, in the [Twilio API](https://www.twilio.com/api) when a text
41+
message is sent to a Twilio phone number Twilio sends an HTTP POST request
42+
webhook to the URL specified by the user. The URL is defined in a text box
43+
on the number's page on Twilio as shown below.
44+
45+
<img src="theme/img/twilio-webhook-definition.jpg" width="100%" alt="Webhook definition in the Twilio API." class="technical-diagram" />
46+
3347

3448

3549
## API open source projects

source/content/pages/10-misc/1005-change-log.markdown

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ the
2424

2525
## 2014
2626
### May
27+
* Updated APIs page with basic information on webhooks.
2728
* Added learning checklist for source control, application dependencies,
2829
configuration management and NoSQL data stores.
2930
* Moving learning checklists to the bottom of the pages since they are
181 KB
Loading
181 KB
Loading

0 commit comments

Comments
 (0)