Retrieves all email aliases for a user. The collection does not include the primary login for the user.
This operation is performed by calling function getUserEmailAliases
.
See the endpoint docs at API Reference.
client.getEmailAliases().getUserEmailAliases(newUser.getId())
- userId
String
- The ID of the user. Example: "12345"
- headers
GetUserEmailAliasesHeaders
- Headers of getUserEmailAliases method
This function returns a value of type EmailAliases
.
Returns a collection of email aliases.
Adds a new email alias to a user account..
This operation is performed by calling function createUserEmailAlias
.
See the endpoint docs at API Reference.
client.getEmailAliases().createUserEmailAlias(newUser.getId(), new CreateUserEmailAliasRequestBody(newAliasEmail))
- userId
String
- The ID of the user. Example: "12345"
- requestBody
CreateUserEmailAliasRequestBody
- Request body of createUserEmailAlias method
- headers
CreateUserEmailAliasHeaders
- Headers of createUserEmailAlias method
This function returns a value of type EmailAlias
.
Returns the newly created email alias object.
Removes an email alias from a user.
This operation is performed by calling function deleteUserEmailAliasById
.
See the endpoint docs at API Reference.
client.getEmailAliases().deleteUserEmailAliasById(newUser.getId(), newAlias.getId())
- userId
String
- The ID of the user. Example: "12345"
- emailAliasId
String
- The ID of the email alias. Example: "23432"
- headers
DeleteUserEmailAliasByIdHeaders
- Headers of deleteUserEmailAliasById method
This function returns a value of type void
.
Removes the alias and returns an empty response.