intercom / intercom-go

Go Bindings For Intercom
https://developers.intercom.io/reference
Other
71 stars 79 forks source link

Add missing annotation on Contacts property in ContactList #129

Open lkabell opened 4 years ago

lkabell commented 4 years ago

Why?

The Contacts list would always be empty because of the missing JSON annotation on the Contacts field, e.g. when doing

contactList, err := ic.Contacts.List(intercom.PageParams{Page: 2})
contactList.Contacts

contactList.Contacts would be empty.

How?

Added JSON annotation.

taipeicoder commented 4 years ago

Same goes for other resources (e.g: CompanyList)