How can I find out PersonId and other information for Glip API?

  • 1
  • Question
  • Updated 3 months ago
I'm writing an application that interacts with the Glip API, but I can not find the value of the personID and groupID
Photo of Jonh Smith

Jonh Smith

  • 84 Points 75 badge 2x thumb

Posted 3 months ago

  • 1
Photo of John Wang

John Wang, Official Rep

  • 5,476 Points 5k badge 2x thumb
What type of app are you trying to create?

  • In a bot application, your bot will receive an event with a groupID which can be used to retrieve a list of personIds in the group.
  • If you want to post directly, you can retrieve a list of groups with groupIds with associated personIds.
Photo of Tyler Long

Tyler Long, Official Rep

  • 6,918 Points 5k badge 2x thumb
Here is the API for Glip: https://developer.ringcentral.com/api-docs/latest/index.html#!#GlipApi.html

You request for group and person information using the API.

As John said, if you setup WebHook / PubNub  to receive Glip events, there should be GroupId in the event message. 
Photo of Jonh Smith

Jonh Smith

  • 84 Points 75 badge 2x thumb
For example, I want to make the Glip API request /restapi/v1.0/glip/persons/{personid},
how to find the value of the user "personid" in Glip?
I have a user in Glip but his "ID" did not find it, as well as the data "ID" of his group (team).
Photo of Tyler Long

Tyler Long, Official Rep

  • 6,028 Points 5k badge 2x thumb
You can list all of the groups:/restapi/v1.0/glip/groups. And in these groups there must be the group containing the person you mentioned.

For each of these groups, there is a members property containing all the person IDs. Then you can /restapi/v1.0/glip/persons/{personid} to get person information by ID.
(Edited)