crisp-im / python-crisp-api

🐍 Crisp API Python Wrapper
https://docs.crisp.chat/guides/rest-api/
MIT License
28 stars 11 forks source link

Bugfix -> the function needed in parent seems to be "remove", not "de… #4

Closed Stok closed 6 years ago

Stok commented 6 years ago

…lete".

I was getting this error: def remove_conversation(self, website_id, session_id):

return self.parent.delete(self.__url_conversation(website_id, session_id, ""))

E AttributeError: 'Crisp' object has no attribute 'delete'

Crisp does seem to have an attribute called remove that has the right behaviour. This may just be a naming error...?

valeriansaliou commented 6 years ago

Thank you, it's been fixed right in v1.0.6 (there were some other delete to move to remove, thus I've done it on my end).