JsonNode node) throws InvalidCredentialsException {
this.client = client;
JsonNode result = node.get("result");
this.id = result.get("userID").asLong();
if (id == 0) {
throw new InvalidCredentialsException();
}
this.email = email;
this.password = password;
}