intercom / intercom-go

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

Events with rich links in metadata #146

Open juliomrc opened 1 month ago

juliomrc commented 1 month ago

Version info

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)