Iam using the golang package
https://github.com/intercom/intercom-go/p>
While iam trying to update my contact , getting error
Error :
400: invalid_document, either_email_or_user_id_present validation failed
Code:
ic := intercom.NewClient(token, "")
contact := intercom.Contact{
ID: "604720410292c92b2fbd598a",
UserID: "420",
CustomAttributes: map>string]interface{}{"First Campaign Sent": "Yes boss"},
}
savedContact, err := ic.Contacts.Update(&contact)
Please help me for update contact using golang