crisp-im / go-crisp-api

:hamster: Crisp API Golang Wrapper
https://docs.crisp.chat/guides/rest-api/
Other
36 stars 9 forks source link

Unable to resolve all conversations for a Website #5

Closed theonlyjohnny closed 3 years ago

theonlyjohnny commented 3 years ago

The Crisp docs mention that by not passing sessions to the Batch Resolve API call, all of the sessions for the website will be resolved.

Unfortunately, there is no way to do that with the current Crisp Go SDK, as it will always pass the sessions key, which will result in a 400 from the Crisp API.

I tried client.Website.BatchResolveConversations(websiteID, []string{}) and client.Website.BatchResolveConversations(websiteID, nil), both return 400s