EmailProviderManager

management. EmailProviderManager

EmailProviderManager Auth0 Email Provider.

Constructor

new EmailProviderManager(options)

Parameters:
Name Type Description
options Object The client options.
Properties
Name Type Attributes Description
baseUrl String The URL of the API.
headers Object <optional>
Headers to be included in all requests.
Source:

Members

resource :external:RestClient

Provides an abstraction layer for consuming the Auth0 Clients endpoint.
Type:
Source:

(inner) clientOptions :Object

Options object for the Rest Client instance.
Type:
  • Object
Source:

Methods

configure(data, cbopt) → {Promise|undefined}

Configure the email provider.
Parameters:
Name Type Attributes Description
data Object The email provider data object.
cb function <optional>
Callback function.
Source:
Returns:
Type
Promise | undefined
Example
management.emailProvider.configure(data, function (err) {
  if (err) {
    // Handle error.
  }

  // Email provider configured.
});

delete(cbopt) → {Promise|undefined}

Delete email provider.
Parameters:
Name Type Attributes Description
cb function <optional>
Callback function.
Source:
Returns:
Type
Promise | undefined
Example
management.emailProvider.delete(function (err) {
  if (err) {
    // Handle error.
  }

  // Email provider configured.
});

get(cbopt) → {Promise|undefined}

Get the email provider.
Parameters:
Name Type Attributes Description
cb function <optional>
Callback function.
Source:
Returns:
Type
Promise | undefined
Example
management.emailProvider.get(function (err, provider) {
  console.log(provider);
});

update(data, cbopt) → {Promise|undefined}

Update the email provider.
Parameters:
Name Type Attributes Description
data Object Updated email provider data.
cb function <optional>
Callback function.
Source:
Returns:
Type
Promise | undefined
Example
management.emailProvider.update(function (err, provider) {
  if (err) {
    // Handle error.
  }

  // Updated email provider.
  console.log(provider);
});