intercom-go icon indicating copy to clipboard operation
intercom-go copied to clipboard

Add missing annotation on Contacts property in ContactList

Open lkabell opened this issue 5 years ago • 1 comments

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.

lkabell avatar Feb 19 '20 14:02 lkabell

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

taipeicoder avatar Mar 26 '20 09:03 taipeicoder