Implementing Webhooks

With this knowledge, let's get started and implement Webhooks in this recipe.

Getting ready

For this recipe, we will use a famous Python web framework called Django. It allows you to use multiple plugins that get simply plugged in. Here, we will use the django-rest-hooks plugin developed by Zapier for implementing Webhooks.

So let's gets started and install the required packages. We install Django==1.10 and django-rest-hooks==1.3.1 using our favorite tool, Python pip:

 (user)chetans-MacBookPro:ch07 Chetan$ pip install Django==1.10 Collecting Django==1.10 Downloading Django-1.10-py2.py3-none-any.whl (6.8MB) 100% |████████████████████████████████| 6.8MB 71kB/s Installing collected packages: Django Successfully installed Django-1.10 ...

Get Automate it! - Recipes to upskill your business now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.