You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[](https://twilio.com/quest?utm_source=gh-badge&utm_medium=referral&utm_campaign=webhooks-course)
2
+
1
3
# Understanding Webhooks
2
4
3
5
This repository contains detailed notes and code for the Understanding Webhooks course 💡
4
6
5
7
*[🚀 Code](./code)
6
8
*[📚 Notes](notes.md)
9
+
*[🎮 Learn more for free using a video game](https://twilio.com/quest?utm_source=gh-link&utm_medium=referral&utm_campaign=webhooks-course)
Copy file name to clipboardExpand all lines: notes.md
+107-4Lines changed: 107 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,5 @@
1
+
[](https://twilio.com/quest?utm_source=gh-badge&utm_medium=referral&utm_campaign=webhooks-course)
2
+
1
3
# Understanding Webhooks
2
4
3
5
## Unit 1 - Integration
@@ -8,7 +10,7 @@ In this unit we will focus on combining applications together. We'll do this by
8
10
9
11
#### Prerequisites
10
12
11
-
* 🎥[APIs for Beginners on freeCodeCamp.org](https://www.youtube.com/watch?v=GZvSYJDk-us&feature=youtu.be)
13
+
* 🎥[APIs for Beginners on freeCodeCamp](https://www.youtube.com/watch?v=GZvSYJDk-us&feature=youtu.be)
12
14
13
15
#### 📚 Learn more
14
16
@@ -22,7 +24,6 @@ In this unit we will focus on combining applications together. We'll do this by
@@ -40,17 +41,40 @@ In this unit we will focus on combining applications together. We'll do this by
40
41
41
42
## Unit 2 - Capturing Data from a Webhook
42
43
44
+
In this unit we'll take a look at a specific Webhook implementations [GitHub](https://github.com) and [Discord](https://discord.com).
45
+
43
46
### Video 1 - Diving into Webhooks
44
47
48
+
*[First blog post about "Web hooks" - Wayback machine](https://web.archive.org/web/20180630220036/http://progrium.com/blog/2007/05/03/web-hooks-to-revolutionize-the-web/)
49
+
45
50
### Video 2 - Explore the Request
46
51
52
+
*[Beeceptor](https://beeceptor.com)
53
+
47
54
### Video 3 - Using the Data
48
55
49
56
### Video 4 - Developing Locally
50
57
58
+
⚠️ I made a mistake! I cloned in my `~/Code` directory because I forgot to `cd courses`.
*[Netlify Dev - Local server](https://www.netlify.com/products/dev/)
96
+
63
97
#### 🖊 Correction
64
98
65
-
📓 I figured out what my problem was! After you change environment variables in Netlify you need to reboot. I decided to keep the bugs in there so you know that we all make mistakes, and how to debug a webhook. I hope you enjoy the lemonade made from the lemons of that bit 🍋.
99
+
📓 I figured out what my problem was! After you change environment variables in Netlify, you need to reboot. I decided to keep the bugs in there so you know that we all make mistakes, and also how to debug a webhook.
100
+
101
+
I hope you enjoy the lemonade made from the lemons of that bit 🍋s.
66
102
67
103
### Unit 3 - Hooking it altogether
68
104
105
+
In this unit we'll build an entire application that leans almost entirely on the concept of Webhooks. We'll build an idea capturing hotline that transcribes the ideas and then sends you a text message.
*[How to use your free trial account - Twilio Docs](https://www.twilio.com/docs/usage/tutorials/how-to-use-your-free-trial-account)
113
+
114
+
The following [TwiML](https://twilio.com/docs/sms/twiml) will send a text message when set up to handle incoming messages.
115
+
116
+
```xml
117
+
<Response>
118
+
<Message>You got this!💪</Message>
119
+
</Response>
120
+
```
121
+
122
+
This is using a Webhook. When the message comes in, control is passed to your application (it just happens to be in a TwiML Bin), and you return these instructions.
0 commit comments