Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

Members can be removed from a Space through the "removeSpaceMembers" mutation on a WWClient or WWGraphQLEndpoint. The method takes a List of member IDs. The methods return an ArrayList of members IDs removed.

 


removeSpaceMembers
@Test(enabled = true)
@Parameters({ "appId", "appSecret","space2Id" })
public void removeMembersToSpace(String appId, String appSecret, String space2Id, String profileId) throws WWException, UnsupportedEncodingException {
    WWClient client = WWClient.buildClientApplicationAccess(appId, appSecret, new WWAuthenticationEndpoint());
    client.authenticate();
    List<String> members = new ArrayList<String>();
    members.add(profileId);
    List<String> ids = client.removeSpaceMembers(space2Id, members);
    assert ids.size() == 1;
}


 

  • No labels