question

jonh-smith10658 avatar image
jonh-smith10658 asked ·

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

I'm writing an application that interacts with the Glip API, but I can not find the value of the personID and groupID


aaa
1 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

John Wang avatar image
John Wang answered ·
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.
Share
1 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Tyler Liu avatar image
Tyler Liu answered ·
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. 
Share
1 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

jonh-smith10658 avatar image
jonh-smith10658 answered ·
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).

1 comment Share
1 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

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.
1 Like 1 · ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.