Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def conversation_update(self, id, update_request):
uri = CONVERSATION_PATH + '/' + str(id)
return Conversation().load(self.request(uri, 'PATCH', update_request, CONVERSATION_TYPE))
def start(self, start_request):
uri = CONVERSATION_PATH + '/start'
return Conversation().load(self.client.request(uri, 'POST', start_request))
def conversation_start(self, start_request):
uri = CONVERSATION_PATH + '/start'
return Conversation().load(self.request(uri, 'POST', start_request, CONVERSATION_TYPE))
def conversation_read(self, id):
uri = CONVERSATION_PATH + '/' + str(id)
return Conversation().load(self.request(uri, 'GET', None, CONVERSATION_TYPE))
def items(self, value):
if isinstance(value, list):
self._items = []
for item in value:
self._items.append(Conversation().load(item))