How to use the messagebird.conversation.Conversation 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_update(self, id, update_request):
        uri = CONVERSATION_PATH + '/' + str(id)
        return Conversation().load(self.request(uri, 'PATCH', update_request, CONVERSATION_TYPE))
github messagebird / python-rest-api / messagebird / conversation_client.py View on Github external
def start(self, start_request):
        uri = CONVERSATION_PATH + '/start'
        return Conversation().load(self.client.request(uri, 'POST', start_request))
github messagebird / python-rest-api / messagebird / client.py View on Github external
def conversation_start(self, start_request):
        uri = CONVERSATION_PATH + '/start'
        return Conversation().load(self.request(uri, 'POST', start_request, CONVERSATION_TYPE))
github messagebird / python-rest-api / messagebird / client.py View on Github external
def conversation_read(self, id):
        uri = CONVERSATION_PATH + '/' + str(id)
        return Conversation().load(self.request(uri, 'GET', None, CONVERSATION_TYPE))
github messagebird / python-rest-api / messagebird / conversation.py View on Github external
def items(self, value):
        if isinstance(value, list):
            self._items = []
            for item in value:
                self._items.append(Conversation().load(item))