crisp-im / node-crisp-api

:zap: Crisp API Node Wrapper
https://docs.crisp.chat/guides/rest-api/
MIT License
99 stars 38 forks source link

Not able to call the listPeopleConversations method #8

Closed vrochamaia closed 5 years ago

vrochamaia commented 5 years ago

Hi,

I'm trying to get all the conversations by the a specific user using the following method

CrispClient.websitePeople.listPeopleConversations(process.env.CRISP_WEB_SITE_ID, people.people_id, 0)

I'm quite sure that the websiteId and peopleId are correct, but actually I'm receiving an exception like this: {"reason":"error","message":"not_found"}. And yes, the peopleId specified have more than one conversation.

Besides that, the method is not on the README.md file of this repository, but it's on the source code as I already checked.

Am I doing something wrong? Thanks in advance.

valeriansaliou commented 5 years ago

Hi there! I think this undocumented function is hitting a "not_found" API route, checking this. I'll be back soon!

valeriansaliou commented 5 years ago

Hi again. Found an issue in the route as expected. Fixed & updated the library on NPMJS, you can bump to v1.8.1 and let me know if that works for you.

vrochamaia commented 5 years ago

Yeah, it's working now! Thanks.