def create_hook(self, callback_url, id_model, desc=None, token=None):
        token = token or self.resource_owner_key

        if token is None:
            raise TokenError("You need to pass an auth token in to create a hook.")

        url = "https://trello.com/1/tokens/%s/webhooks/" % token
        data = {'callbackURL': callback_url, 'idModel': id_model,
                'description': desc}

        response = requests.post(url, data=data, auth=self.oauth)

        if response.status_code == 200:
            hook_id = response.json()['id']
            return WebHook(self, token, hook_id, desc, id_model, callback_url, True)
        else:
            return False
Creates a new webhook. Returns the WebHook object created.
dataset/ETHPy150Open sarumont/py-trello/trello/trelloclient.py/TrelloClient.create_hook