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

Events with rich links in metadata

Open juliomrc opened this issue 4 months ago • 0 comments

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)

juliomrc avatar Sep 27 '24 09:09 juliomrc