Domanda

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)

È stato utile?

Soluzione

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

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top