Yammer API - Can we get list of groups from yammer API for a current user?

StackOverflow https://stackoverflow.com/questions/20697996

  •  20-09-2022
  •  | 
  •  

문제

I want to get list of groups that user has joined using yammer API. I have not seen any support in REST API. Is there any way to get list of groups for a current user?

도움이 되었습니까?

해결책

We can get list of groups using following REST API:

https://www.yammer.com/api/v1/groups.json?mine=1

다른 팁

This is the documented call to get the groups for the current user: https://www.yammer.com/api/v1/users/current.json?include_group_memberships=true.

you can use bellow code. if you want all the groups of your network then remove "?mine=1" from url.

yam.platform.request({
                // yam.request({
                url: "groups.json?mine=1",
                method: "GET",
                data: {},
                success: function (group) {
                    myGroups = group;
                    getCurrentGroups();

                },

                error: function (group) {
                    console.error("There was an error with the request.");
                }
            });
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top