Package com.auth0.client.mgmt
Class EmailTemplatesEntity
java.lang.Object
com.auth0.client.mgmt.EmailTemplatesEntity
Class that provides an implementation of the Email Templates methods of the Management API as defined in https://auth0.com/docs/api/management/v2#!/Email_Templates
This class is not thread-safe.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final okhttp3.HttpUrlprotected final Auth0HttpClientstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringprotected final TokenProvider -
Method Summary
Modifier and TypeMethodDescriptioncreate(EmailTemplate template) Create an Email Template.Request the Email Templates.protected <T> Request<T>request(HttpMethod method, com.fasterxml.jackson.core.type.TypeReference<T> target, Consumer<com.auth0.client.mgmt.RequestBuilder<T>> customizer) update(String templateName, EmailTemplate template) Patches the existing Email Template.voidRequest(HttpMethod method, Consumer<com.auth0.client.mgmt.RequestBuilder<Void>> customizer)
-
Field Details
-
TEMPLATE_VERIFY_EMAIL
- See Also:
-
TEMPLATE_RESET_EMAIL
- See Also:
-
TEMPLATE_WELCOME_EMAIL
- See Also:
-
TEMPLATE_BLOCKED_ACCOUNT
- See Also:
-
TEMPLATE_STOLEN_CREDENTIALS
- See Also:
-
TEMPLATE_ENROLLMENT_EMAIL
- See Also:
-
TEMPLATE_CHANGE_PASSWORD
- See Also:
-
TEMPLATE_PASSWORD_RESET
- See Also:
-
TEMPLATE_MFA_OOB_CODE
- See Also:
-
client
-
baseUrl
protected final okhttp3.HttpUrl baseUrl -
tokenProvider
-
-
Method Details
-
get
Request the Email Templates. A token with scope read:email_templates is needed. See https://auth0.com/docs/api/management/v2#!/Email_Templates/get_email_templates_by_templateName- Parameters:
templateName- the template name to request. You can use any of the constants defined inEmailTemplatesEntity- Returns:
- a Request to execute.
-
create
Create an Email Template. A token with scope create:email_templates is needed. See https://auth0.com/docs/api/management/v2#!/Email_Templates/post_email_templates- Parameters:
template- the template data to set- Returns:
- a Request to execute.
-
update
Patches the existing Email Template. A token with scope update:email_templates is needed. See https://auth0.com/docs/api/management/v2#!/Email_Templates/patch_email_templates_by_templateName- Parameters:
templateName- the name of the template to update. You can use any of the constants defined inEmailTemplatesEntitytemplate- the email template data to set.- Returns:
- a Request to execute.
-
voidRequest
protected Request<Void> voidRequest(HttpMethod method, Consumer<com.auth0.client.mgmt.RequestBuilder<Void>> customizer) -
request
protected <T> Request<T> request(HttpMethod method, com.fasterxml.jackson.core.type.TypeReference<T> target, Consumer<com.auth0.client.mgmt.RequestBuilder<T>> customizer)
-