terri
terri

Reputation: 11

How can I get the list of rooms/spaces for a user (not the bot) with Google Chat API?

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

Answers (1)

Monique G.
Monique G.

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 enter image description here

Next, under Response Body, click on Membership enter image description here

Next, under Resource:Membership, click on User enter image description here

Then lastly, under User, you can already see the displayName parameter enter image description here

Reference link:

https://developers.google.com/hangouts/chat/reference/rest#rest-resource:-v1-.spaces.members

Upvotes: 1

Related Questions