Reputation: 11
Currently I can grab the list of rooms the bot is in with chat.spaces.list()
But is it possible to get the list of spaces for a specific user and could someone provide an example of how this could be done?
Thank you!
Upvotes: 1
Views: 1380
Reputation: 239
This is the way for you to see the displayName on Google Chat API:
First, click on list under REST Resource: v1.spaces.members
Next, under Response Body, click on Membership
Next, under Resource:Membership, click on User
Then lastly, under User, you can already see the displayName parameter
https://developers.google.com/hangouts/chat/reference/rest#rest-resource:-v1-.spaces.members
Upvotes: 1