justeat/ZendeskApiClient

VoiceComments

KevinJosephMorin opened this issue · 3 comments

We have been using your API for several years and just enabled Zendesk Talk today. Tickets created with Talk are erroring.

I am running 2.0.27

The code that I am calling is Dim objTicketComments = objAPI.TicketComments.GetAll(pubintZDTicketId)

The error thrown is:
"System.AggregateException: One or more errors occurred. ---> Newtonsoft.Json.JsonSerializationException: Error converting value ""VoiceComment"" to type 'ZendeskApi.Contracts.Models.TicketEventType'. Path 'comments[1].type', line 1, position 1019." & vbCrLf & " --- End of inner exception stack trace ---" & vbCrLf & "---> (Inner Exception #0) Newtonsoft.Json.JsonSerializationException: Error converting value ""VoiceComment"" to type 'ZendeskApi.Contracts.Models.TicketEventType'. Path 'comments[1].type', line 1, position 1019.<---" & vbCrLf

Any suggestions?

Thanks

Kevin

Any suggestion on how to fix this?

Kevin

Anyone know how to make the API work when there is a Zendesk Talk comment on a ticket?

I fixed the ZendeskApi.Contracts on my end to work with VoiceComments. Can you push to the 2.x and 3.x repositories?

All I had to do was add ", VoiceComment" to the routine below

namespace ZendeskApi.Contracts.Models
{
public enum TicketEventType
{
Comment,
VoiceComment

}

}