crisp-im / python-crisp-api

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

change_conversation_state and update_conversation_metas do not return json #15

Open vapdev opened 2 years ago

vapdev commented 2 years ago

I wish i could see the response of these methods, but they dont return anything

baptistejamin commented 2 years ago

Hello python-crisp-api#15!

Jairo here, pleased to help you :)

What are you trying to achieve with these specifically?

vapdev commented 2 years ago

I'm using them in a chatbot! And I'm making tests for the chatbot API So I need to see these kind of response { "error": false, "reason": "updated", "data": {} } from crisp api

baptistejamin commented 2 years ago

Got it, so you are trying to change conversation status. But, how are you using that with a bot? Can you please share more details and screenshots.

vapdev commented 2 years ago

Sure,

When the user tells the chatbot to handoff to human, this action is called

image

This action calls "crisp.resolve_conversation(user_id)"

And it calls the crisp_api method

image

vapdev commented 2 years ago

The response is empty, although the conversation state is changed

baptistejamin commented 2 years ago

Got it. I will ask our engineers to review this and we will get back to you soon. Thanks for your patience.