-
Re: Not able to get followers of group from api on jive 6.0.2
bergerle Mar 17, 2014 6:25 AM (in response to pawans)You need to use the /members endpoint. When you look at the result of the places-request of your Group (http(s)://{jiveurl}/api/core/v3/places/{placeID}), the "resources"-field will contain an entry called "members", which is something like http(s)://{jiveurl}/api/core/v3/members/places/{placeID}. This returns a list of memberships, which include the group and the user.
/places/{placeID}/followers was added in version 3.5 of the REST API (API version is independent from Jive version). you can check your version by calling "http(s)://{jiveurl}/api/version".
-
Re: Not able to get followers of group from api on jive 6.0.2
bergerle Mar 17, 2014 6:17 AM (in response to bergerle)also, be sure to use the placeID, which is different from the groupID.
-
Re: Not able to get followers of group from api on jive 6.0.2
pawans Mar 17, 2014 11:45 AM (in response to bergerle)Hi Tobias Berger,
Thanks for the help.
I checked the list of membership you have mentioned (members url in the resources).
It shows only those users who have joined the group as member.
It does not show the users who are just following the group without being a member of it.
Regarding the api version, I see the same api version on uat as well as prod which is as follows -
On prod
"jiveVersion" : "6.0.2.0 ",
"jiveCoreVersions" : [ {
"version" : 2,
"revision" : 3,
"uri" : "/api/core/v2"
}, {
"version" : 3,
"revision" : 2,
"uri" : "/api/core/v3"
} ]
On UAT
"jiveVersion" : "6.0.4.0 ",
"jiveCoreVersions" : [ {
"version" : 2,
"revision" : 3,
"uri" : "/api/core/v2"
}, {
"version" : 3,
"revision" : 2,
"uri" : "/api/core/v3"
} ]
So both the uat and prod are using the same api version.
But the /places/{placeID}/followers works perfectly on uat, not on production.
-
Re: Not able to get followers of group from api on jive 6.0.2
bergerle Mar 17, 2014 12:16 PM (in response to pawans)1 person found this helpfulWell that's weird, because the REST API documentation clearly states that the /followers feature is included since 3.5. And I didn't find anything about it on Fixed Issues in Jive 6.0.4. I just tried it on my UAT and prod instances (both 6.0.3.0) and it didn't work. On your UAT instance (where it is working), do you get the "followers" url as a resource when recieving the place JSON?
If you have access to the source code, you might want to take a look at com.jivesoftware.api.core.v3.services.places.PlaceService and see if your version declares a method for /{placeID}/following
-
-
-
-
Re: Not able to get followers of group from api on jive 6.0.2
bergerle Mar 17, 2014 12:47 PM (in response to pawans)just another note: if you're trying to do something inside of jive, you'll be able to use jive's internal rest service with a call to /__services/v2/rest/activity/users/follow/700/{groupID} (actually groupID, not placeID)-
Re: Not able to get followers of group from api on jive 6.0.2
pawans Mar 18, 2014 12:50 AM (in response to bergerle)Hi Tobias Berger,
I do see the followers url on resource json on 6.0.4. Its missing in 6.0.2 resource json.
And i am trying to call this from an external app. So I guess I have to use v3 and not v2.
I think I will have to wait till we upgrade our production instance to 6.0.4.
For now I am just getting list of all users on our jive instance and scanning every users streams to find who is following a particular group (with email or without email)
-
-
Re: Not able to get followers of group from api on jive 6.0.2
james1.hicks Mar 16, 2017 11:57 AM (in response to pawans)Trying to do this in 2017.
We still have an instance of Jive 6.03 and I have been trying to get a list of followers for a particular 'Place'.
I used the ---https://jiveurl/api/core/v3/places/placeID and my response does not have a resource-members section. I tried /followers and also get nothing. I do see a followerCount of 76, so I know that they exist.
Reason I need this: Wanting to see the json structure for followers. I am working on finding a way to do a mass un-follow for all members whoa re following specific Place.
-
Re: Not able to get followers of group from api on jive 6.0.2
noelwhite Mar 16, 2017 12:12 PM (in response to james1.hicks)1 person found this helpfuladd "/followers" to the end of that API URL.
-