From baee8380034f00e6c43fa08d7625db260fbd6295 Mon Sep 17 00:00:00 2001 From: Andrea Orru Date: Mon, 4 Jun 2018 16:46:45 +0100 Subject: [PATCH] Fixed mark read --- intercom/service/conversation.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/intercom/service/conversation.py b/intercom/service/conversation.py index 61f143a7..0275c4c3 100644 --- a/intercom/service/conversation.py +++ b/intercom/service/conversation.py @@ -25,7 +25,7 @@ def collection_class(self): def resource_url(self, _id): """Return the URL for the specified resource in this collection.""" - return "/%s/%s/reply" % (self.collection, _id) + return "/%s/%s" % (self.collection, _id) def reply(self, **reply_data): """Reply to a message.""" @@ -59,5 +59,5 @@ def __reply(self, reply_data): """Send requests to the resource handler.""" _id = reply_data.pop('id') reply_data['conversation_id'] = _id - response = self.client.post(self.resource_url(_id), reply_data) + response = self.client.post(self.resource_url(_id) + '/reply', reply_data) return self.collection_class().from_response(response)