How to use the messagebird.conversation_webhook.ConversationWebhook function in messagebird

To help you get started, we’ve selected a few messagebird examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github messagebird / python-rest-api / messagebird / client.py View on Github external
def conversation_create_webhook(self, webhook_create_request):
        return ConversationWebhook().load(
            self.request(CONVERSATION_WEB_HOOKS_PATH, 'POST', webhook_create_request, CONVERSATION_TYPE))
github messagebird / python-rest-api / messagebird / client.py View on Github external
def conversation_read_webhook(self, id):
        uri = CONVERSATION_WEB_HOOKS_PATH + '/' + str(id)
        return ConversationWebhook().load(self.request(uri, 'GET', None, CONVERSATION_TYPE))
github messagebird / python-rest-api / messagebird / client.py View on Github external
def conversation_update_webhook(self, id, update_request):
        """
        Updates a webhook with the supplied parameters.

        API Reference: https://developers.messagebird.com/api/conversations/#webhooks
        """
        uri = CONVERSATION_WEB_HOOKS_PATH + '/' + str(id)
        web_hook = self.request(uri, 'PATCH', update_request, CONVERSATION_TYPE)
        return ConversationWebhook().load(web_hook)
github messagebird / python-rest-api / messagebird / conversation_webhook.py View on Github external
def items(self, value):
        items = []
        if isinstance(value, list):
            for item in value:
                items.append(ConversationWebhook().load(item))

        self._items = items