I have several questions related to google.golang.org/api/chat/v1
.
It seems the only available
Event
object isDeprecatedEvent
. So, what is the non-deprecated one to use?If
DeprecatedEvent
is indeed the intended one to use, inside theDeprecatedEvent
object, there's aUser *User
field. However, it seems that theUser
object is different from what I actually got from the responses.
For example:
{
'eventTime': '2019-08-27T06:50:12.391141Z',
'user': {
'name': 'users/112...',
'email': 'iskandar.setiadi@...',
'avatarUrl': 'https://lh3.googleusercontent.com/a-/AAu...',
'displayName': 'Iskandar Setiadi',
'type': 'HUMAN'
},
'type': 'ADDED_TO_SPACE',
'space': {
'name': 'spaces/7ag...',
'type': 'DM'
}
}
In the API, User
object only contains displayName
, name
, and type
. It seems that email
and avatarUrl
are not there. Is v1 outdated or is there any alternatives that I don't know?