Class CreateUserApiRequest
java.lang.Object
com.github.jamesnetherton.zulip.client.api.core.ZulipApiRequest
com.github.jamesnetherton.zulip.client.api.user.request.CreateUserApiRequest
- All Implemented Interfaces:
ExecutableApiRequest<Long>
Zulip API request builder for creating a new user.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreateUserApiRequest
(ZulipHttpClient client, String email, String fullName, String password) Constructs aCreateUserApiRequest
. -
Method Summary
Methods inherited from class com.github.jamesnetherton.zulip.client.api.core.ZulipApiRequest
client, getParam, getParams, putParam, putParamAsJsonString, putParamAsWrappedObject
-
Field Details
-
EMAIL
- See Also:
-
FULL_NAME
- See Also:
-
PASSWORD
- See Also:
-
-
Constructor Details
-
CreateUserApiRequest
Constructs aCreateUserApiRequest
.- Parameters:
client
- The Zulip HTTP clientemail
- The email address of the new userfullName
- The name of the new userpassword
- The password of the new user
-
-
Method Details
-
execute
Executes the Zulip API request for creating a new user.- Specified by:
execute
in interfaceExecutableApiRequest<Long>
- Returns:
- The id of the new user
- Throws:
ZulipClientException
- if the request was not successful
-