intercom / intercom-go

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

add missing links field to conversation #107

Closed denizmekik closed 5 years ago

denizmekik commented 6 years ago

Why?

Why are you making this change?

Intercom sends links field in the conversation. A sample snippet when I decoded into map[string]interface

"tags": map[string]interface {}{
                 "type": "tag.list",
                 "tags": []interface {}{
                 },
             },
             "links": map[string]interface {}{
                 "conversation_web": "https://app.intercom.io/a/apps/e1q03aiw/inbox/all/conversations/19183230695",
             },
             "assignee": map[string]interface {}{
                 "name":  "Customer Success Team",
                 "email": "e1q03aiw@glidr.intercom-mail.com",
                 "type":  "admin",
                 "id":    "1163989",
             }

How?

Technical details on your change

I've created a Links struct and added it to Conversation