문제

How do I get the complete memberlist for a Community (more than the first 10) using the Java API in the SBTSDK? It appears that there should be a way to use the GetCommunityMembers and get the total number and page through them. (sorry if this is too basic)

도움이 되었습니까?

해결책

You should get the the CommunityEntity object then call getMembers, and then process the object.

String communityUuid = "1dba2e59-05da-4b9a-84e4-2444a6cac251";
Community myComm = new Community(communityUuid); 
MemberList listOfMembers = myComm.getMembers(); 

Then call listOfMembers.iterator(); and process in a for loop (the data element is Member)

The docs are also in the sbtsdk download in docs/javadocs/index.html

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top