intercom-go
intercom-go copied to clipboard
Go Bindings For Intercom
#### 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 ```...
#### Why? To see the difference between leads and users Also, gofmt happened. Some go code wasn't properly formatted as per Go standards.
Please support modules. https://github.com/golang/go/wiki/Modules
The NewClient function currently accepts two parameters: appID and apiKey. If the user is using an API token, the appid and api token have to be passed in reverse order:...
This is pull request for resolving Issue: [Setting avatar does not work](https://github.com/intercom/intercom-go/issues/80) Avatar was added to User structure. But it is not in reqeustUser structure. Before posting /user API, User...
On creating User, companies will be created if belonging companies are not exists. CustomAttributes for companies are ignored for this creation. So I added CustomAttirbutes for UserCompany that is used...
Add missing fields from API docs.
Referring to #30 there is an issue with `,omitempty` tag. Omit empty is not just causing empty values not to be set (coz they are omitted) but also it takes...