intercom-go
intercom-go copied to clipboard
Events with rich links in metadata
Version info
- intercom-go version: v2.0.0-20210504094731-2bd1af0ce4b2
- Go version: 1.22.0
Expected behavior
Rich links in custom events' metadata work.
Actual behavior
Rich links sent with the golang API are displayed as [object Object]
in intercom's dashboard.
Steps to reproduce
event := intercomlib.Event{
UserID: userId,
EventName: eventName,
CreatedAt: int64(time.Now().Unix()),
Metadata: map[string]any{
some_rich_link: map[string]any{
"url": "https://www.some-custom-url.com",
"value": "some-custom-name",
},
},
}
ic.Events.Save(&event)