Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejava
titleaddSpaceMembers
@Test(enabled = true)
@Parameters({ "appId", "appSecret","space2Id", "profileId" })
public void addMembersToSpace(String appId, String appSecret, String space2Id, String space2NameprofileId) throws WWException, UnsupportedEncodingException {
    WWClient client = WWClient.buildClientApplicationAccess(appId, appSecret, new WWAuthenticationEndpoint());
    client.authenticate();
    List<SpaceMemberObject> members = new ArrayList<SpaceMemberObject>();
    SpaceMemberObject obj = new SpaceMemberObject("1281ac4d-74f1-4aaa-bbb7-29123410aaa3", "");
    List<String> ids = client.addSpaceMembers(space2Id, members);
    assert ids.size() == 1;
}