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 String
protected final okhttp3.HttpUrl
protected final okhttp3.OkHttpClient
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
-
Method Summary
Modifier and TypeMethodDescriptioncreate
(EmailTemplate template) Create an Email Template.Request the Email Templates.protected <T> Request<T>
request
(String 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
(String 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
protected final okhttp3.OkHttpClient client -
baseUrl
protected final okhttp3.HttpUrl baseUrl -
apiToken
-
-
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 inEmailTemplatesEntity
template
- the email template data to set.- Returns:
- a Request to execute.
-
voidRequest
-
request
-