Getting a Member List of a Group
A group owner and members can get a list of members of the group with the API shown below:
curl -v -X GET \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Accept: application/vnd.kii.MembersRetrievalResponse+json" \
"https://api-jp.kii.com/api/apps/{APP_ID}/groups/{GROUP_ID}/members"
Kii Cloud will return a member list as follows:
< 200
< Content-Type: application/vnd.kii.MembersRetrievalResponse+json
<
{
"members" : [ {
"userID" : "{USER_ID_OF_MEMBER_1}"
}, {
"userID" : "{USER_ID_OF_MEMBER_2}"
}, {
"userID" : "{USER_ID_OF_MEMBER_3}"
}, {
"userID" : "{USER_ID_OF_MEMBER_4}"
} ]
}