There current are API calls that let you list the Teams, Add or Remove Team members, but where is the call to list the Team members. A roster of users in a Team would be valuable for programs that want to integrate with Glip.
For now, you still can use this endpoint "/restapi/v1.0/glip/groups/[teamId]" to read team's members. The API is marked as deprecated though. I will check to see why the new API is missing and update the answer when I get the info.
Any update? https://platform.ringcentral.com/restapi/v1.0/glip/groups?type=Team is marked as obsoleted/beta. Can we use this API?
It looks like https://platform.ringcentral.com/restapi/v1.0/glip/recent/chats?type=Team can be used to retrieve similar list of Teams . Still it is not clear how to retrieve members. https://platform.ringcentral.com/restapi/v1.0/glip/chats/ChatId does not return members - although is should per RingCentral API documentation.
I recommend no using this endpoint ( /restapi/v1.0/glip/groups?type=Team ) anymore.
Use the Get Teams, Get Chats, Get Conversations instead.
Thanks for the comments. We need API to view list of team members.
Please note that Get Teams, Get Chats, Get Conversations do not return list of team members...However, https://platform.ringcentral.com/restapi/v1.0/glip/groups?type=Team which is marked as obsolete returns list of team members.
https://platform.devtest.ringcentral.com/restapi/v1.0/glip/chats/chatId which shall return members per RingCentral documentation, does not return team members.
So which API shall we use to retrieve list of team members?
Get Chat(s) and Get Conversation(s) do return the `members` array. Only Get Team(s) does not return. I am checking with the team to see what is an official way to read team's members.
Thanks for the comments.
I am sorry, but I do not see that Get Chat(s), Get Conversation(s) return team members. Only the obsoleted API - https://platform.ringcentral.com/restapi/v1.0/glip/groups?type=Team seems to return Team members.
Here is the sample code in Node JS
... read_glip_chats("") async function read_glip_chats(pageToken){ var endpoint = "/restapi/v1.0/glip/chats" var params = { recordCount: 250, pageToken: pageToken } try{ var resp = await platform.get(endpoint, params) var jsonObj = await resp.json() for (var record of jsonObj.records){ console.log(record) } if (jsonObj.navigation.prevPageToken) read_glip_chats(jsonObj.navigation.prevPageToken) }catch(e){ console.log(e) } } // example response { id: '1151138168834', type: 'Direct', members: [ { id: '62288329016' }, { id: 'glip-1429807833091' } ], creationTime: '2022-02-03T01:08:33.119Z', lastModifiedTime: '2022-02-03T01:08:33.119Z' }
"/restapi/v1.0/glip/groups/[teamId]" is still working, but is there any news on a non-deprecated API for getting a Team's member list?
A new Community is coming to RingCentral!
Posts are currently read-only as we transition into our new platform.We thank you for your patience
during this downtime.
Try Workflow Builder
Did you know you can easily automate tasks like responding to SMS, team messages, and more? Plus it's included with RingCentral Video and RingEX plans!Try RingCentral Workflow Builder