Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ddd1ed commit 82b0c4aCopy full SHA for 82b0c4a
intercom/service/conversation.py
@@ -25,7 +25,7 @@ def collection_class(self):
25
26
def resource_url(self, _id):
27
"""Return the URL for the specified resource in this collection."""
28
- return "/%s/%s/reply" % (self.collection, _id)
+ return "/%s/%s" % (self.collection, _id)
29
30
def reply(self, **reply_data):
31
"""Reply to a message."""
@@ -59,5 +59,5 @@ def __reply(self, reply_data):
59
"""Send requests to the resource handler."""
60
_id = reply_data.pop('id')
61
reply_data['conversation_id'] = _id
62
- response = self.client.post(self.resource_url(_id), reply_data)
+ response = self.client.post(self.resource_url(_id) + "/reply", reply_data)
63
return self.collection_class().from_response(response)
0 commit comments